validate requested for and current logged in user to allow request submission

shyam34
Tera Contributor

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

13 REPLIES 13

Hi Aman,

this is not working on Portal , getting Javascript error 

any solution with Script include and glide ajax?

 

Do you have Requested for field on the catalog item, or you are expecting OOB requested for field on the Request field to be fetched?

Because it won't work

 

Best Regards
Aman Kumar

Hi Aman,

we dont have requested for field on catalog item , it is default for every item in portal.

No, I don't believe it is by default.

Best Regards
Aman Kumar

shyam34
Tera Contributor

this should happen on portal , this is not aborting submission even on diff requested for and loggedin user