- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 11:52 PM
Hello @Sagar Pagar ,
I have requerement like in catalog item we have two fields called county and location both are referenced by cmn_location table so if i select country field as india then it show the only india based locations like bangalore, hyd ect ...
So can please help me on this ....
Regards
Haresh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 12:43 AM
Hi @Haresh Haru,
Make sure that the variables name are correct.
Both are referenced to the same table i.e. cmn_location. hence you need to query with country column.
javascript:if(current.variables.country_variable_name != ''){
"country=" + current.variables.country_variable_name.country;
}
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers! 👍🏻
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 12:30 AM
Hi @Haresh Haru
Check if "Parent" is the common for specific location.
javascript: "parent=" + current.variables.country;
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
09-07-2023 01:02 AM
Hi @Haresh Haru,
Use the Advanced reference qualifier below:
javascript: "country="+ current.variables.country.country;
Output:
Location Table filter condition:
If my answer solves your issue, please mark it as Helpful and Accepted.
Thanks,
Anshul