Not getting value of filed using " g_form.getValue("Filed Name")"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2016 09:26 AM
I have a user defined filed(u_in_freeze_window) in Change form, which is read only through "Configuration Dict." I tried to get the value of the filed in UI action using "g_form.getValue("u_in_freeze_window");" but it gives Blank Value always. But If I use same command in Client script Onload, it gives the value.
I need to get the value of filed in UI action to perform some action. Need help/assistance, Why I am not getting in UI Action but able to get in Client Script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2016 09:58 AM
Hi Balaji,
g_form can only be used on the client (for instance, the web browser). So you have to check the checkbox 'Client' in the UI actions. Then g_form will work.
Please refer below knowledge article for reference :
ServiceNow KB: Determine if the UI action is configured correctly (KB0547282)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2016 10:09 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2016 10:17 AM
Can you give a screenshot of the remaining script part also
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2016 10:25 AM