- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 01:31 AM
Help to write a script -
Where to write the script will be as under Variable attributes or Reference qual or create a Catalog Client script
If answer to question- Need access to a research lab is Yes, show Room Location country USA state is CA
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 01:47 AM
Try passing below as Reference qualifier
javascript: var query = ''; if(current.variables.variable_name == 'Yes') query = 'country=USA^state=CA'; query;
//replace variable_name with room location variable name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 01:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 01:41 AM
You can write a client script onChange of Need access to a research lab.
But I would suggest having two lookup select box one with filter other without filter. If answer is Yes display the filter one otherwise display without filter one using UI policy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 01:47 AM
Try passing below as Reference qualifier
javascript: var query = ''; if(current.variables.variable_name == 'Yes') query = 'country=USA^state=CA'; query;
//replace variable_name with room location variable name