ShowFieldMsg in UI policies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 11:43 PM
Hello developers, I need to show field msg for a date field via ui polices on service portal, but the message is not displayed. Any suggestions is appreciated. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2024 12:07 AM
Hi @servicenow14710
I have tried and it's working for me, please try to replicate
Please mark this as helpful and accept it as a solution if this works for you.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 04:18 AM
Hi @servicenow14710
If this response helped you to achieve your requirement, please accept it as a solution.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2024 12:33 AM
use this below Code in UI Policy Script
Execute if true:
g_form.clearValue('fieldname');
g_form.showErrorBox('fieldname', your message):
Execute if false
g_form.clearMessages(); // clears messages if condition is false
Regards,
Shyamkumar
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2024 12:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2024 12:45 AM
Hi
You need to write script on catalog client script
g_form.showFieldMsg('variable_name','msg','error');
