- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2016 09:44 AM
Hello,
We have a requirement where the selected value from the SelectBox Catalog should be displayed in the incident. How can I get the selected value from the SelectBox?
Suggestions, tips would be greatly appreciated.
Thanks,
Shalini
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2016 09:58 AM
Is g_form.getValue('variable_name') not working? Write a on change catalog client script of that variable n check.Hit like, Helpful or Correct depending on the impact of the response.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
alert(g_form.getValue('urvaraiblename'));
//Type appropriate comment here, and begin script below
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2016 09:56 AM
Hi Shalini,
You can use g_form object in client script like below:
g_form.getValue('field_name_select_box');
Thanks and Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2016 09:58 AM
Is g_form.getValue('variable_name') not working? Write a on change catalog client script of that variable n check.Hit like, Helpful or Correct depending on the impact of the response.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
alert(g_form.getValue('urvaraiblename'));
//Type appropriate comment here, and begin script below
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2016 10:11 AM
Yes, the g_form.getValue('variable_name') is not working. I will try the change catalog client script and see if it works.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2016 10:13 AM
pls provide screenshot of the variable n ur script for checking further..
Hit like, Helpful or Correct depending on the impact of the response