Lookup Select Box Reference qual by variable in MRVS

Tzippi Berko
Tera Contributor

We have catalog Item with MRVS. I have Reference variable to application and Lookup select Box variable for modules. I need to filter values in Lookup Select Box depended on application selected in the reference variable.

I add to "Reference qual"  javascript:'u_application='+current.variables.application; but nothing was showing in Lookup Select Box variable. I tried to add it to script include and log it and it seems the current.variables.application is empty.

When I change the type of module variable to reference I got value in current.variables.application(Reference Variable).

Change again to Lookup Select Box and again current.variables.application recognized as empty

 

Any Idea?

 

 

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hi @Tzippi Berko ,

Kindly add "ref_qual_elements = applications" attribute to the lookup select box variable.

It will fix your issue.

 

ref_qual_elements

A list of fields to be sent back to the server to get an updated reference.

Applicable variables: Lookup multiple choice, Lookup select box, List Collector

For more details:

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/service-catalog-management...

 

View solution in original post

4 REPLIES 4

Anil Lande
Kilo Patron

Hi,

Have you tried using it like below:

 

javascript:'u_applicationIN'+current.variables.application.toString();  // use toString() 

 

 

Aman Kumar S
Kilo Patron

Hi @Tzippi Berko ,

Kindly add "ref_qual_elements = applications" attribute to the lookup select box variable.

It will fix your issue.

 

ref_qual_elements

A list of fields to be sent back to the server to get an updated reference.

Applicable variables: Lookup multiple choice, Lookup select box, List Collector

For more details:

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/service-catalog-management...

 

Do you mean to use ref_qual_elements attribute instead of "Reference qual"? If so, I tried it and it didn't work. I not please explain me what shold I do.

Talking about this:

Capture69.PNG

 

 

 

just add "ref_qual_elements = applications", in the variable attribute field, make sure correct name of the dependent field goes in here, in your case Application field.