allow same location to select as per logged in user id location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 12:44 AM
Hi,
we have a variable set: "requested for country" which shows the logged in user details for the catalogue in SP.
based on the logged in user the country is displayed as "if the user is from India then it shows as india in requested for country" variable.
we want a variable "county used for" which is a lookup select box to allow users to select only India.
the lookup select box has multiple location in it which is coming from the table" u_razor_access_data_loolkup".
if the logged in user is from India and select the variable" country used for" as India then it should allow else it should show a popup to select the correct country and clear the value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 05:12 AM
Hi @Anubhav Srivas1
Can you share your code here if possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 01:03 AM
Hi @Anubhav Srivas1,
If your in the new version of servicenow then you can use the auto populate feature to fill the user country.
If your not then you got to use glide ajax and onchange client script to get the user country from user profile. or you can create a reference qualifier on country field to show only the users country in the list. I hope this helps...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 01:22 AM
can you please help me wih the script?