How to Get the DisplayValue of a select box variable in “Client Side” on RITM.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 06:19 AM
Hello Guy's
On the RITM i am trying to show the diplay value for "select Box" type variable but unable show that with below methods:
getDisplayValue()
g_form.getDisplayBox(‘field_name’).value
Thanks in Advance!
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 06:46 AM

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 10:28 AM
Hi @Tejashri2 ,
try this
var backendValue=g_form.getValue('selectboxname'); //get the value
var displayValue=g_form.getOption('selectboxname', backendValue).text; //get you the display value
Accept and hit Helpful if it helps.
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 10:47 AM
Try this
var myVal=g_form.getValue('for_community'); //get the value
alert(myVal);
-Anurag