how to restrict the requestor to submit single request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 09:13 PM
Hi ,
I have one scenario for one of my requirements,
We have a record producer form and custom table.
As Requestor i need to submit only one request and if requestor tries to submit another he should not be able to submit the request and get a popup saying you have already submitted a request on record producer form.
How to check this scenario?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 09:21 PM - edited 11-26-2023 09:21 PM
Hi @Are Kaveri ,
You can write an OnSubmit script to restrict this. Do a GlideAjax, and in your script include, create a function where you will do a gliderecord for your custom table, check with this requestor, if there exists a record for them, return true. Back in you onSubmit script, if the return value is true i.e. there is an existing request submitted then add an error messase and return false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 09:26 PM
Please share me any sample script which will help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:18 PM
Something roughly like
But please adust in as per your requirement and refine the script.