- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 03:48 AM
Hi Team,
I need help with reference qualifier on city variable, I have added below script, it shows based on country. but I need to add one more condition as well for cmn_location_type=city. So it can show on city type records. Please assist
javascript:'countryLIKE'+current.variables.country.getDisplayValue();
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 03:51 AM
something like this
javascript:'countryLIKE'+current.variables.country.getDisplayValue() + '^cmn_location_type=city';
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 03:51 AM
something like this
javascript:'countryLIKE'+current.variables.country.getDisplayValue() + '^cmn_location_type=city';
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 04:09 AM
Thank you, it worked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 03:52 AM
Hi @Ash41
You can amend your code like below :
javascript:'countryLIKE'+current.variables.country.getDisplayValue() + '^cmn_location_type=city';
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 03:53 AM
If city is a variable then Something like this should work
javascript:'countryLIKE'+current.variables.country.getDisplayValue()+'^cmn_location_typeLIKE'+current.variables.city.getDisplayValue();