Expand my Community achievements bar.

Alert and wildcard operator in input form

Avatar

Level 4

Hi,

 

Instead of error message I want to display alert message in input form. Also how can I use wildcard operator in input form.

I tried below code in nms:delivery input form but like operator throwing an error.

 

<if expr="EV(@messageType, 'sms')">
     <check expr="@label like 'Adobe'">
         <error> "SMS label should contain Adobe" </error>
    </check>
</if>

 

Please guide me.

 

Thanks,

 

4 Replies

Avatar

Level 3

Hi @tejashriw155148 ,

Can you please let us know what error you are getting with below code.

Generally with LIKE operator, a wild card character(%) must be included in entered value.

Something similar below

<check expr="@label like '%Adobe'">

 

Please try with wild card character. Hope it helps.

 

Regards

Avatar

Level 4

Hi @InMo 

I tried above code but its not working. Its throwing below error-

tejashriw155148_1-1593151367227.png

 

Thanks,

 

Avatar

Level 3

I think it is because of case sensivity, try LIKE and this should resolved the issue.

Avatar

Level 4

@InMo 

 

LIKE also not supporting, throwing below error.

 

tejashriw155148_0-1593164464266.png

 

Thanks,