Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Alert and wildcard operator in input form

Avatar

Avatar
Validate 1
Level 2
tejashriw155148
Level 2

Likes

12 likes

Total Posts

70 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
tejashriw155148
Level 2

Likes

12 likes

Total Posts

70 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
tejashriw155148
Level 2

25-06-2020

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,

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 2
tejashriw155148
Level 2

Likes

12 likes

Total Posts

70 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
tejashriw155148
Level 2

Likes

12 likes

Total Posts

70 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
tejashriw155148
Level 2

25-06-2020

Hi @InMo 

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

tejashriw155148_1-1593151367227.png

 

Thanks,

 

Avatar

Avatar
Boost 5
Level 2
InMo
Level 2

Likes

8 likes

Total Posts

25 posts

Correct Reply

12 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 5
View profile

Avatar
Boost 5
Level 2
InMo
Level 2

Likes

8 likes

Total Posts

25 posts

Correct Reply

12 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 5
View profile
InMo
Level 2

25-06-2020

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