- 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-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
08-26-2024 06:41 AM
thanks so much - this helped me as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2025 11:30 PM
Thank you, @Michael James2.