How to highlight when mandatory field and tab is empty?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2022 09:28 AM
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2022 09:34 AM
Hi,
You can try with
g_form.getControl('fieldName').focus();
Refer this support docs for your solution.
How to use .focus() on a Field
Thanks!
Sagar Pagar
The world works with ServiceNow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2022 09:40 AM
do I need to use client script or anything else?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2022 09:49 AM
You can use this in UI Policy script or Client scripts.
The world works with ServiceNow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2022 10:08 AM
It would be great if anyone share detailed steps.