How to stop submission of a record producer

Hari1
Mega Sage

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

2 REPLIES 2

Musab Rasheed
Tera Sage
Tera Sage

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

Please hit like and mark my response as correct if that helps
Regards,
Musab

Sreeneketh1
Tera Contributor

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!!