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 Abhinay,


Is there anything i would change in ref qualifier part?



This is an orderguide, incase that makes any difference


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


Thank you so much Abhinay.



I am learning slowly !!