We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

not getting result when change from reference to lookup box

chercm
Mega Sage

i have a catalog form and when i used to the reference and reference qualifier javascript: "install_status=6^stockroom=" + current.u_stockroom;  how can i change to use lookup box where it will look for instock status ?

 

image.png

image.png

 

1 ACCEPTED SOLUTION

Hi @chercm I found the reason why it is not working for you because for look up select box you need to ref_qual_elements=stockroom under variable attributes.

 

'your reference qualifier will be

javascript:'install_status=6^stockroom='+current.variables.stockroom;( stock room is the variablename of reference field)

 

I tested in PDI the below works fine refer below screenshots

HarishKM_0-1710468101861.png

HarishKM_1-1710468124563.png

 

Regards
Harish

View solution in original post

10 REPLIES 10

Neetu2000
Tera Contributor

Hello @chercm 
Your question is not clear .
Could you please refine it and ask again so that I can help you out.

Harish KM
Kilo Patron

Hi @chercm you can use same reference qualifier when you change the type to look up select box you have to input look up value field and then there is a option to input reference qualifier

Regards
Harish

@Tyler Johnson @Harish KM 

 

i am not sure what needs to change here 

 

image.pngimage.png

@Harish KM  not getting any result 

 

image.pngimage.png