Option include none in a catalog item variable don't seem to function correctly

jean-lucchatton
Kilo Guru

Hello,

I've created a new catalog item with a variable of type "Select box". As I want that the user choose a value I've set the options "Mandatory" to true and "include none" to false. The problem is that "-- None --" appears in the top of the selection and that the "Mandatory" as no effect.

Is there a possibility to correct this ?

Thank you

Jean-Luc

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

If you want to make it mandatory you need to make include none true. That should add --None-- to the top and force someone to select one of the other choices to continue. I would check to make sure you don't have none in the default value field currently. It might help if you included a screenshot of the variable entry as well.


View solution in original post

4 REPLIES 4

Brad Tilton
ServiceNow Employee
ServiceNow Employee

If you want to make it mandatory you need to make include none true. That should add --None-- to the top and force someone to select one of the other choices to continue. I would check to make sure you don't have none in the default value field currently. It might help if you included a screenshot of the variable entry as well.


Hello Brad,



The solution that you have indicate works, i.e. define the field as mandatory. But the option include none has no effect : -- None -- will allways be displayed. This behavior is not the same as in a form. Anyway, thanks for the soluition !


christinedorsey
Tera Contributor

Is this a custom choice list on that variable or are you pointing to another existing choice list?   I've seen this behavior when pointing to an existing choice list (for instance, priority on the incident table).  



Brad is also correct, if you don't have the none option, mandatory wont mean anything.


I've tried both (an existing one and a new one).