
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 07:35 AM - edited 02-16-2023 12:00 AM
Hello,
My requirement is to restrict submit option if a user is part of a certain group.
The user needs to access the catalog item and should be able to see all the variables in it (which are set to read only) but if submit button is clicked, an error should appear and the submission shouldn't be allowed.
Things I have tried:
Script include:
Client script onSubmit:
1st version:
2nd version:
I have tried with XMLWait as well but the method is no longer used.
Thank you.
Elena
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2023 01:28 AM
Let me know what do you guys think, I managed to solve it this way:
Script include:
Client script:
Tested it both ways(user part of group, user that isn't part of the group) and it seems that it works as expected.
Thank you for all the ideas, you guys are amazing!
Have a great day,
Elena

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2023 04:59 AM
@Ankur Bawiskar Yes, worked for both.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2023 07:09 AM
Thanks for sharing the info..
Happy learning..!!
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader