Requestor Country Auto populate, If the Requester Location Country is not India, do not allow submit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2024 11:51 PM
In the Record Producer, based on the Requested for auto-populate the Requestor Country, if the Requester Location Country is not India, do not allow to submit and alert.
I wrote the code but its not working
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 07:51 PM
I think you need to say - if (inc !='India') { - try without the extra =
You could also have on change- the person selects the country ( required field) and if they pick anything else other than India- You show a message saying you can only proceed if your in India, clear the Country field and they wont really be able to proceed to even get to the submit button. You can even have text on top of form in Red saying this form is ONLY intended foe use in India
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 09:03 PM - edited 07-15-2024 09:16 PM
Hi @akashvarma85310 ,
Please try below code. Tested in my PDI which is working for both cases i.e not for India & India.
Please mark helpful & accept answer if it's worthy for you.