- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2022 02:34 AM
Hi,
I have a requirement wherein when a person is creating a request and the requested for is some other person for whom the form is not available, I need to alert the user that a request cannot be raised for this person since the form is not available for him. Please advise on how to proceed with this.
Thanks,
Garima
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2022 03:05 AM
Hi,
If Requested for is a field on the form, try to use 'Requested For' variable type instead of reference type
If the Requested for user doesn't fall under the user criteria, below error message will be displayed and form won't get submitted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2022 02:41 AM
Hi,
So if user is selecting some user in reference variable then how are you determining if the form is available for that person?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2022 02:52 AM
Hi
forms are visible to users who have access according to the user criteria, if I have access and someone doesn't, I should not be able to raise a request for that person.
We can check the available for and not available for for this, if the requested for has access or not acc to this.
Need to figure out how this could work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2022 02:58 AM
Hi,
You need to discuss this requirement with your client.
Seems they are not clear on what they want
If user is able to see the form then it means that user has satisfied the user criteria
If the form has some variable based on which the form should be restricted from submission you should know the use cases when it is allowed and when submission is to be blocked.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2022 03:11 AM
According to the requiremtnt if the Requested For user defined is not defined in the "available for" or defined as "not available for" an error message should pop up