validate requested for and current logged in user to allow request submission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2022 03:01 AM
Hello All,
I have requirement to abort Request submission when we see "Requested for" and "current logged IN user" are not same , we need to do this because there is an variable to acknowledge terms & conditions and this has to be done by requested for only so we need to avoid on behalf of requests
Can you please guide/help with Script to achieve this !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2022 06:07 AM
hello @shyam34 ,
what is the java script error that you are getting on the screen ?
you can try this script and write this script in on submit
make sure you selected UI type as all and try
If(g_user.userID == g_form.getValue('your_requested_for_field_name'))
{
return true;
}
else
{
return false;
}
Hope this helps
Mark my answer correct if this helps you
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2022 06:10 AM
Hello Mohith,
Created same already but still it could not stop submitting the request , it is throwing java script error that g_user.userID() in console logs
can we acheive the same with script include and glide ajax?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2022 06:17 AM
@shyam34 can you post the screenshot of the exact error that you are getting in console or just paste the line here ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2022 06:20 AM