NONE as default value for reference field

sobitha
Kilo Contributor

Can we set none as default value for the reference field type?

Kindly help on this.

9 REPLIES 9

Hi Sobhitha,



I am make the assignment_group(reference field ) drop down with none.



Can you please verify and let me know if you need any other information.




find_real_file.png


Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.

Thanks Karthik. But I am creating this reference field in catalog. Can you help on this please.


Hello Sobitha,



As I informed, please do the same and map the field on catalog to the table field. It might help your cause.


Atul Kumar2
Giga Guru

Hi Sobitha,



If there is not any value called None then it can not be set to None since reference field sets either null or unique value of that record being selected.



So as per my understanding without None record in reference table it can not be set to None.



Regards,


Atul Kumar


lSurya 24
Giga Guru

Hello Sobha,



There is one way to do this, which I have achieved in my personal dev instance.



Firstly,


1. you have go to configure dictionary of the required field and in attribute field place the following: "u_ref_auto_completer_ajaxreferencechoice" like in below screenshot. which will enable drop down ability for the records.


2. Now. in the choice list specification. select dropdown with none and in default value write as none. which will show the none value in the options.



Below is the screenshot for your reference:


find_real_file.png