How to stop submission of a record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 03:57 AM
Hi,
I have created a record producer and I don't want to submit the form if the user already has submitted a request.
If the user submits the form a record will be created on a table. I am validating the "requested for" field which is present on the form against the record created/submitted "requested for" field that is on the record created on the table.
If the user already exist then it should not allow to submit the form.
Can this be achieved?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 04:10 AM
Hello Hari,
Go through below thread, Similar question was asked last month.
https://community.servicenow.com/community?id=community_question&sys_id=faf7c9b8db8b05503321db85ca961967
Mark my answer as correct if that helps.
Regards
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 04:16 AM
Hi
- Create a onBefore BR ( insert ) In that table your trying to insert .
- Check the user using glide record function already exist in the table field "requested for' . If user thr abort the action before insert of record.
using : gs.setAbortAction(true).
Please Mark ✅ Correct/helpful, if applicable, Thanks!!