- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2016 10:18 AM
Have a need to reset a Yes/No variable(Included --None--) back to not answered, after it's been answered. Will perform in a script.
Tried the following two commands but no luck.
g_form.setValue('question_2', '');
g_form.setValue('question_2', '-- None --'');
This is to be used for a catalog item with catalog client scripts.
Thanks in advance for any suggestions/help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2016 11:02 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2016 10:22 AM
Hi Kevin,
Can you please elaborate further on what is the exact business req. Confused on why you want to reset the value after selection.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2016 10:43 AM
If you are trying to set it to No, here is your code
g_form.setValue(''question_2','No');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2016 11:02 AM
sure use g_form.clearValue('variable name')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2016 11:59 AM
That worked great!!
Thanks for all the replies and quick responses.