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
02-20-2024 12:58 AM
You can use onchange client script here in the field "country used for".
Follow the steps:
1. Get the value of the Requested for country field and the new value selected by the user in Country used for.
2. Compare both the values, if they both are same then allow the user to proceed else, put an alert to show the message and clear the value by using g_form.clearValue('your_field_name',' ');
Please mark this as helpful if this resolves your query.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 01:22 AM
Hi,
can you please help me with the script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 01:49 AM - edited 02-20-2024 02:50 AM
Hi @Anubhav Srivas1
1. Wirte a Onchange CS like this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 09:11 PM
Hi Gaurav, even if i select the request for country as : INDIA and country used for as "india" still the popup message appears "diff", can you please help. IT is very important.