- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2017 06:19 AM
Seems like a rudimentary question. I am writing an onSubmit client script. I want it to say something like if choice_1 is --None-- set order_1 to xxx. What is the value behind --None-- that I can use in my script? I've tried null, Null, NULL, none, None, --None--, -- None --. I have tried reading both the value and the displayValue and I can't seem to get the right one.
Any help would be sincerely appreciated. Thanks in advance!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2017 06:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2017 06:26 AM
Hi Alex,
It's blank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2017 06:28 AM
Oh my gosh... yup, that helped tremendously. Thank you!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2022 01:59 PM
I do agree that it is blank, but that does not solve the problem. The following code does not get executed when None is selected
default:
g_form.clearOptions('profiles');
g_form.addOption('profiles', '', '-- None --');
OR
case '':
g_form.clearOptions('profiles');
g_form.addOption('profiles', '', '-- None --');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2017 06:26 AM
Hello Alex,
Try as
if(g_form.getValue('PASS FIELD NAME') == '')
{
//your code
}