The Now Platform® Washington DC release is live. Watch now!
06-24-2016 10:02 AM
Hello,
I am building a record producer and am having trouble with a reference qualifier on a Lookup Select box. The first variable on the record producer is as follows
Type: Reference
Question: Request for
Name: request_for
Reference: User [sys_user]
The second variable is a Lookup Select Box. I want to create a choice list of all active INCs for the user in the first variable, Request for. Here's what I have now
Type: Lookup Select Box
Question: Technical Support Incident Number
Name: ts_inc
Lookup from table: Incident [incident]
Lookup value field: Caller
Lookup label field(s): number
Reference qual: caller_id=current.variables.request_for
When I try to test by previewing the item, and filling in the Request for variable with a user I know has an active INC, nothing populates in the Lookup Box
Solved! Go to Solution.
06-24-2016 11:00 AM
Cynthia,
You will add this in reference qualifier = javascript: 'caller_id='+current.variables.request_for;
then you will have to add this in variable attributes = ref_qual_elements=request_for
Note: You will have to add Variable attributes to the form layout and in the below snapshot 'ref' is my variable name
Thanks,
Abhinay
Please mark Helpful, Like, or Correct depending on the impact of the response
06-24-2016 10:25 AM
This should help you: Changing the Filter of a List Collector Variable via Client Script - ServiceNow Guru
06-24-2016 10:53 AM
That article appears to be about client scripts, not reference qualifiers. Also I don't think I can use a simple reference qualifier, like pictured in the article, to reference another variable in the record producer
06-24-2016 11:01 AM
Apologize - got distracted, misread your post. Let me see if I can get your an answer.
06-24-2016 11:15 AM
Please mark it as correct so others can find the solution easily if they have similar questions.
Thanks,
Abhinay
PS: Hit like, Helpful or Correct depending on the impact of the response