Form submission should restrict if Requested By's email address does not match the entered email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 04:53 AM
In one of the catalog items, I am having a filled mailbox type, and in that I am having the option as personal mailbox. So if I select the personal mailbox, then there is another field that is the mailbox email address. So if the requested by is raising that request, then in the mailbox email address field, if that requested by user's email address is present, then user should be able to submit the form. But if that mailbox email address is not matching with the requested by's email address, then the user should not be able to submit the form.
So can you please help me to implement this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 05:35 AM
Hello @Sakshi Lambat ,
1. Create a catalog client script either on onchange or onsubmit and in that you can call the script include with respective parameters 'mailbox email address' and 'login user sys_id'.
2. Create a script include with two parameter function and get the 'email' and 'user_sys_id' from the catalog client script. In this script include you can Glide the user table and get the user record using sys_id and then inside the 'if{}" block you can compare the email address for the Glide Record user and the mailbox email address then return the value according to your requirement.
3. Once the response is in the catalog client script you can abort the form submission or process.
Please like this reply if you think this will help you.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 09:15 AM
Hi @mihirlimje867 ,
I am using this onSubmit Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 11:26 PM
Hello @Sakshi Lambat ,
Has it worked? if not could you send me the script include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2024 05:18 AM
No, it is not working.
Below is the script include: