Skip to main content
tejashriw155148
Level 4
Jun 25, 2020 6:35 PM UTC
Question

Alert and wildcard operator in input form

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,

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Level 3
Jun 26, 2020 2:46 AM UTC

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

Translate
tejashriw155148
Level 4
Jun 26, 2020 6:03 AM UTC

Hi @inmo 

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

 

Thanks,

 

Translate
Level 3
Jun 26, 2020 6:37 AM UTC

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

Translate