The CreatorCon Call for Content is officially open! Get started here.

Set the first option on a reference variable

Alice Hill
Tera Expert

Hi,

 

I have a reference variable on a catalog item that uses the countries table.

 

How do I make a country appear top of the list without making it the default value?

3 REPLIES 3

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @Alice Hill ,

Check @Chuck Tomasi reply and implement same code :-

https://www.servicenow.com/community/developer-forum/setting-the-default-value-of-a-reference-field/... 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

Hi Gunjan,

 

is there a way to do it without making it the default value?

BigZolo
Tera Expert

I would try a scripted reference qualifier which reorders the results as required.