Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Lookup selectbox reference qualifier

surya123
Mega Guru

Hi All

I have a lookup select box and I want to write a reference qualifier which will populate the data based on data saved to requested For field.

I had earlier set this up as assigned_to =javascript:gs.getUserID();

But this just fetched record for that user. But since we can change the value of Reqested for, hw should I change the ref qual to get it work???

1 ACCEPTED SOLUTION

That is incorrect. The line ref_qual_elements=.... goes in the variable attributes and the javascript one goes in the reference qual section



ref_qual_elements=Requested_For         ---->This goes in the variable attributes


javascript:'assigned_to='+current.variables.Requested_For     ----->This goes in the reference qual section


View solution in original post

17 REPLIES 17

Hi Raymond,



This is the snapshot from variable page



find_real_file.png


ok so it is a variable.. you may need to make it current.variables.Requested_For


Can you post the snapshot of the Lookup select box variable


find_real_file.png


It works for me.It is pretty straight forward. Add you variable name in ref_qual_elements and use reference qualifier.