Regarding drop down with none option

joshishree
Kilo Contributor

The exi cluster field is drop down with none .

and its a mandatory field

if no value is given its still allowing to save the ritm form

is there any value for none

find_real_file.png

I dont want to give a default value to this field

1 ACCEPTED SOLUTION

Hi Bhagyashree,



So it means somebody has added None as choice and not used drop down with none functionality at dictionary level. Can you configure the dictionary for that field and check choices for that



If somebody has added --None-- as choice then 2 options


1) remove --None-- as choice and make it dropdown with none


2) update your script to compare with --None-- whenever you want to compare with emptiness



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Hi Bhagyashree,



So it means somebody has added None as choice and not used drop down with none functionality at dictionary level. Can you configure the dictionary for that field and check choices for that



If somebody has added --None-- as choice then 2 options


1) remove --None-- as choice and make it dropdown with none


2) update your script to compare with --None-- whenever you want to compare with emptiness



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

yup its working now thank you


Nice to hear that.



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,  I have a mandatory field "XYZ" configured "dropdown with none". ANd none is not added as  a choice. Can you please let me know if there are some existing records with none, why the list view is showing --None-- instead of empty.

ramyashree1_0-1721889959885.png