
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2019 07:40 AM
Hi!
How I do I get Choice Label and not the Value. This is on Client Side
var priorityValue = g_form.getValue('priority');
var priorityLabel = g_form.getOption('priority', priorityValue).text;
I am doing this code and nothing!
Thanks in advance!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2019 09:13 AM
There might be some better option at client side only, but the one I getting getting now is to use GlideAjax to send value to server and then return display name from server.
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2019 07:54 AM
getDisplayValue should give you the Label and not the Value.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2019 08:49 AM
Sadly it doesn't work in Client Side 😞
Any other suggestion?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2019 09:02 AM
Can you send the script that you were trying to use?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2019 09:13 AM
There might be some better option at client side only, but the one I getting getting now is to use GlideAjax to send value to server and then return display name from server.
Thank you,
Ali