Custom Script to Trigger an Alert if there is no email address associated with Requester (using FAFR)

Custom Script to Trigger an Alert if there is no email address associated with Requester (using FAFR)

Working on Builds: 14500 too

Scenario:
  Request should not be created if there is no email address associated with the requester. Instead it should prompt and alert stating there is no email address associated with the requester. 

The above requirement can be achieved using FAFR.  

Script :

if($CS.getValue("REQUESTER.EMAILID")==""|| typeof $CS.getValue("REQUESTER.EMAILID") == "undefined"){
   $CS.stopFormSubmission();
  alert ("There is no email address associated with the requester")
}



                  New to ADManager Plus?

                    New to ADSelfService Plus?