How to override choice --None-- with custom value for Glide list field

vishnu vandana2
Kilo Contributor

For an glide list field we have created choices. For that field we want to override choice label "--None--" with custom label.

Please help us on the same .

Thanks in Advance.

 

 

11 REPLIES 11

If that's the case, you need to check for client scripts or UI Policy scripts that are taking actions on that field because the OOTB behavior for choice list without --None-- works fine.  Make sure that you use the value for your default field and not hte label.

Try this in a PDI or dev instance.  Create a new field call it whatever you want.  Add a few choices to it.  Go into the dictionary and set it as choice list without --None--.  Be sure to set a default. 

I'm attaching a couple of screen prints.  The first shows the setup for such an field

find_real_file.png

 

and the second how the choices are displayed.

find_real_file.png

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

Hi John,

 

I need for the field type List, but in the screen shot type is String.

 

Regards,

Vishnu

vishnu vandana2
Kilo Contributor

find_real_file.png

 

 

 

 

 

 

find_real_file.png

 

 

 

Change the choice list specification from Dropdown with -None- to Dropdown without -None-.  It's on the choice list specification tab.

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

Mohit Kaushik
Mega Sage
Mega Sage

Hi Vishnu,

Just select the choice specification as "Dropdown without none" and then according to your sequence values your custom field will appear in the list. Make sure that "--Custom--" is having sequence number at lowest.

 

Hope that will help

 

Please mark it correct and helpful if it resolves the purpose.

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)