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-05-2024 11:48 PM
Hi @servicenow14710
Did you mean while creating widgets or on the webform?
Can you share the code that you've written if possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 11:51 PM
Hi, it is on catalog form, i have used script execute if true-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 11:55 PM
Hi @servicenow14710
Use the below script and try
g_form.showFieldMsg("field name","error message","error");
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-05-2024 11:58 PM
Hi yes i tried g_form.showFieldMsg("field name","error message","error");
g_form.showFieldMsg("field name","error message","error",'true');
msgs are not shown.
