How do i get Choice field value in onchange client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2021 11:57 PM
Hi Experts,
Can you pls suggest me how do i get choice field (Technologies) value (WCC) in onchange client script.
Regards,
Balaji

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2021 12:10 AM
This is a list type of field fromm what I can see so it can store more than one value.
if you do g_form.getValue('your_field_name'), it will give you a comma-separated string of all the selected values in that field. Those would be the sys_ids of the related table records selected in that field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2021 12:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2021 12:36 AM
Hi Balaji,
you can use
var choiceValue = g_form.getValue(<fieldName>);
var choiceLabel = g_form.getOption(<fieldName>, choiceValue).text;
alert(choiceLabel);
Please mark helpful if it helps
Regard,
Abhishek Chavan