When i am writing a client script on NOne option to clear the values its not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2022 08:09 PM
I have written On change client script when None Is selected to clear the options but its not working .please find the script below.
function onChange(control, oldValue, newValue, isLoading) {
if (newValue == ' ') {
g_form.clearOptions('which_state_is_impacted');
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2022 08:23 PM
Hi Sushma,
Instead of that I would suggest to use UI policy which is more efficient.
Set the condition like:
Variable name is empty
Write your script in Run script section.
Thanks,
Murthy
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2022 08:27 PM
May i know why the script is not working here.is there any wrong with the script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2022 08:30 PM
Okie
can you try this:
if (newValue == '') {
g_form.clearOptions('which_state_is_impacted');
}
}
Note: Not tested
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2022 08:34 PM
its not working