- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2022 05:56 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2022 06:21 AM
hello
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2022 06:15 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2022 06:21 AM
hello
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2022 11:11 PM
Thank you for your help. My issue has been resolved.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2022 07:17 AM
Hi,
Probably your condition might be wrong in ui policy.
Can you share screenshot of your condition.
Regards,
Sumanth

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2022 06:25 AM
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.***