- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2016 08:02 PM
Hi Team,
I am unable to set a choice field as None when my condition fails. Below are the screenshots
Execute if true
function onCondition() {
if(g_form.getValue('legends') == 'Between Expected & Minimum Target')
g_form.setValue('d_type','Expected Default');
if(g_form.getValue('legends') == 'Less than Minimum Target')
g_form.setValue('d_type','Minimum Default');
}
Execute if false
function onCondition() {
g_form.clearValue('d_type');
}
-------------------------------------------------------------------------------------------------------------------
In execute if False,
I tried all options to set this value as '--None--'
but it did not worked.
In my legends
Thank You for your support and help.
Regards,
Narmi
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2016 10:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2016 08:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2016 08:21 PM
Hi Narmi,
Look at the condition. Its always gonna execute to TRUE, no matter what !!!.
Thanks
Srinivas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2016 10:24 PM
Use 'is not one of' condition instead of two not condition this will always evaluate to true.
Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2016 10:27 PM
Instead of 'or' in the condition, add 'And' instead.