Catalog Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 04:21 PM - edited ‎09-05-2023 05:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 04:33 PM
Would a reference qualifier work?
javascript: "country=" + current.variables.your_country_variable_name;
Something like that?
Here's some more information on Reference Qualifiers because they explain it better than I can: https://docs.servicenow.com/en-US/bundle/vancouver-platform-administration/page/script/server-script...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 04:36 PM
@Tamara11 i mean i want the field location to be visible else hide it
if country = Thailand in Thailand we don't have no locations = hide location field
if country = US in US we have locations = show location field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 04:55 PM
Ah! I see.
You could achieve that with either a Catalog UI Policy or Catalog Client Script. I think a Catalog UI Policy will probably require a little bit of scripting, but see if you can make the conditions work first.
Are you familiar with those?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 03:29 AM - edited ‎09-05-2023 03:30 AM
Hi @yoli1 ,
Are you using cmn_location table for Country and Location fields?
You have to write onChange client script on Country field.
Change field names accordingly.
Please mark my answer correct and helpful if it works for you.