g_form.getValue('') is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 01:57 AM
Hi,
I am trying to read form values using following code in UI page client script:
var g_form=new GlideForm();
var botType = g_form.getValue("x_14768_catalyst_bot_type");
Above code was working with Istanbul but after upgrading to Jakarta it is not returning any value.
Can someone please suggest me any other was to read the incident table data in UI Page client script.
Thanks,
Vimal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 02:03 AM
var botType = g_form.getValue("x_14768_catalyst_bot_type"); alone would work. You don't need to initialize a object for g_form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 02:08 AM
Hi Kalaiarasan,
Thanks for the reply.
I was getting error g_form is not define so needed to initialize g_form.
Thanks,
Vimal