How to highlight the field label upon UI Action
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 02:28 AM
Hi all,
I have a requirement to highlight field label when user click the UI Action.
For example if field "A" is empty and user click the UI action, field "A" would be highlighted.
I don't want to make field "A" mandatory field.
Thanks.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 02:30 AM - edited 07-08-2024 02:31 AM
Hi,
Using a code like below you can make a field flash
g_form.flash("incident.number","#FFFACD",0);
-Anurag

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 02:32 AM
@shun6 You can use the flash method in the client side code of a UI Action to highlight a specific field.
g_form.flash("incident.number", "#FFFACD", 0);
Please refer to the documentation for more information https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/client/c_GlideFormAPI#r_GlideFo...
Hope this helps.