- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-09-2023 07:07 AM
I have a field of type String with Choice type "Dropdown with --None--". While changing the field value the onChange client script is triggering but when I am changing value to --None-- the onChange client script is not getting triggered. Is there any other way to do some operation while the dropdown value is getting changed to --None-- ?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-09-2023 10:53 AM
The value for "--None--" is an empty string. So without seeing your code I would say that you probably have the default script there and it just returns when the newValue is empty so you need to probably take that check out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-09-2023 11:37 AM
OnChange Client Scripts typically have the boilerplate code added that exits the script when the field is blank. You should just have to simply remove the "newValue === '' from the if statement and the script will execute when the field is blank or None.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-14-2023 08:30 AM
The issue is fixed. thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-11-2024 09:16 PM
For onLoad script you need to use a single space " " and not an empty string "" in the client script.