Musab Rasheed
Kilo Patron
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 12-31-2024 10:01 AM
Hello,
I have often seen this basic question about fetching display value of choice field so here is the working short solution.
If we use getValue it will show only backend value of Choice value but below code will display front end value of Choice.
function onLoad() {
//Type appropriate comment here, and begin script below
var storevalue = g_form.getValue('impact');
var storedisplayvalue = g_form.getOption('impact',storevalue).text;
alert(storedisplayvalue); //Alert to display when form loads
}
Please hit like if this solution helps.
Labels:
- 2,395 Views
Comments
chaithu1489
Kilo Sage
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
01-26-2025
10:57 PM
Hi Musab,
The script did not work for me. I am receiving the error "Uncaught TypeError: Cannot read properties of null (reading 'text')"
mugi-san
Kilo Sage
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
10-28-2025
07:06 PM
anshup
Tera Contributor
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
3 weeks ago
This was really helpful. I was thinking to do GlideRecord sys choice but it would be too much given we need to add so many filter as sys_choice is huge. Thanks a lot. You saved me a lot of time.
Kudos !!!!

