- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-06-2018 02:44 AM
Hi Everyone,
I know before that the value of -- None -- in select box is blank or ''. I am creating a client script to clear selections if -- None -- is selected in a select box but I can't get it to work. It seems that the value of -- None -- is not '' or blank. Can you help me to confirm what is the value of None?
Thank you,
Diane
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-06-2018 02:51 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-06-2018 02:51 AM
it's actually blank

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-21-2020 12:38 PM
I'm using switch/case in a client script, and neither default nor case: "" detect the change to -- None -- from another selection. I'm trying to clear another field if it's selected, and no go. The other selections are read fine...
EDIT: oops! forgot to remove "|| newValue === ''"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-06-2018 02:51 AM
Hi Diane,
If the None option is because of Dropdown with none then it should be empty.
Can you share the script here?
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-06-2018 02:52 AM
--None-- is blank.
You can select none on the form and use javascript executor to check if it different(ctrl+alt+shift+j...then run alert(g_form.getValue('<field name>')))