client script and Display value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 08:27 AM
client script on incident
I am getting back state value as 7 when I use g_form.getValue('state') but I need the display value. When I use
function onLoad() {
//Type appropriate comment here, and begin script below
var stateName = g_form.getDisplayValue('state');
alert('My state is ' + stateName);
}
I get back incident number I guess an object. How can I can I get the display value in client script.
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 08:31 AM
hello
try this
var u_stateLabel = g_form.getOption('state',7).text;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 08:41 AM
This works but in this case I need to define each state i guess. eg.
g_form.getOption('state',7).text; //I get closed in the alert
g_form.getOption('state',6).text; .........
why cant I get displayvalue regardless of defining it first
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 08:48 AM
please mark my answer correct and close the thread so that it will be helpful for future readers and goes to solved queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 08:58 AM
if working close the thread by marking the answer correct and push it to solved queue
Thanks
good day !
