How to create Mandatory Yes/NO variable with option NONE in catalog

varunp
Tera Guru

Hi,

I want to create few mandatory drop downs with yes/No in catalog. But the default value of dropdowns should be NONE so that it will force to user to select any value.

Any idea how to do this?

Regards,

Varun

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I think if you just check the Include none checkbox on the yes/no variable it will automatically add it as the default value. You might also try none in the default value field on the variable.



b3770ef320.png


View solution in original post

3 REPLIES 3

varunp
Tera Guru

I tried with g_form.setValue('your_variable_name', ''); but it is not working.



Under Type Specifications for type Yes/No, there is a 'Include None' boolean.   Have you checked that?


Brad Tilton
ServiceNow Employee
ServiceNow Employee

I think if you just check the Include none checkbox on the yes/no variable it will automatically add it as the default value. You might also try none in the default value field on the variable.



b3770ef320.png