Remove None value

yuvasena
Kilo Contributor

Hi All,

I want to remove default --None-- value in subcategory. could any body help on this Please?.

I have duplicate nones, one is record produce(I have created) and other one is default value.

Thanks,

Pavan

1 ACCEPTED SOLUTION

Hi Pavan,



What build you are on? It sounds like a problem prior to geneva, include none option was loading as default even when Include none option is checked as false.



Try this workaround if you are prior to geneva:


If you want to show "—Choose—" instead of "—None—", you can add a new choice "—Choose—" with value "NULL_OVERRIDE" In the dictionary and set the choicelist action specification to "Dropdown without — None — " and set default value to "NULL_OVERRIDE". Also need to uncheck the "include none" checkbox in the Impact variable in record producer and set default value to "NULL_OVERRIDE".



Check if this helps.


Thanks


Shruti


If the reply was informational, please like, mark as helpful or mark as correct!


View solution in original post

6 REPLIES 6

antin_s
ServiceNow Employee
ServiceNow Employee

Hi Pavan,



You can change it in the choice field's dictionary.



find_real_file.png




Hope this helps. Mark the answer as correct/helpful based on impact.



Thanks


Antin


Shishir Srivast
Mega Sage

Hi Pavan,



Also, please make sure you do not have None as a default value in choice field's dictionary.



find_real_file.png


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 ?



On 23-Jul-2017 10:39 AM, "explorenow" <community-no-reply@servicenow.com>


antin_s
ServiceNow Employee
ServiceNow Employee

You may use g_form.removeOption(); as mentioned in the below thread.



Remove an option from select box variable in the catalog item form



Hope this helps. Mark the answer as correct/helpful based on impact.



Thanks


Antin