How to set the requester field as logged in user

How to set the requester field as logged in user

Go to Admin >> Field and Form Rules >> Create a rule with the below script

var user =  {
  name:$CS.getLoggedInUserLoginName(),
  id:$CS.getLoggedInUserId()
};
$rf.setFieldValue('requester',user); 


                  New to ADSelfService Plus?