How to write warning message in catalog items using UI policy ?

C_S3
Tera Contributor

How to write warning message in catalog items using UI policy ?
Can someone please assist me regarding this query? I have written a UI Policy but its still not showing message.

1 ACCEPTED SOLUTION

hello @Chandni Shah 

no need of scripting here 

just put the condition of the UI policy as 

date field before today 

and in script use the message g_form.addWarningMessage('your message') in "execute if true" field 

 or g_form.showFieldMsg("field name', 'Warning msg');

make sure you select the type as ALL in the run script 

Hope this helps 

mark my answer correct if it helps you

View solution in original post

9 REPLIES 9

Hello,
Thanks for your response.
I have to write this UI policy for Date field (if  selected date is prior to the current date, then display a warning )message.
Can you tell me how can I write this using Client Script?

hello @Chandni Shah 

no need of scripting here 

just put the condition of the UI policy as 

date field before today 

and in script use the message g_form.addWarningMessage('your message') in "execute if true" field 

 or g_form.showFieldMsg("field name', 'Warning msg');

make sure you select the type as ALL in the run script 

Hope this helps 

mark my answer correct if it helps you

Thank you for your help. My issue has been resolved.

 

Hi,

Probably your condition might be wrong in ui policy.

Can you share screenshot of your condition.

 

Regards,
Sumanth

Yousaf
Giga Sage

Hi Chandni,

Everyone already answered. Not sure where are you stuck. but if you still have doubts refer to this.

Scripting alert, info, and error messages


Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***