AnsweredAssumed Answered

Get Approved/Rejected on submit

Question asked by ioani01 Employee on Sep 13, 2016
Latest reply on Sep 13, 2016 by ioani01


I have a custom two step approval process. Once the 1st level has reviewed the request they can of course Approve or Reject. To approve they need to select a user from a lookup field which gets populated automatically from a report data object. I've had to make this field required so that the user doesn't submit without selecting an approver. This doesn't work however if the approver rejects the request as the lookup is required.


I thought of removing the required attribute and rather onSubmit using some javascript to check if the lookup is an empty string. If the string is empty and the status is approved it will alert with the appropriate message. How can I look for and retrieve the 'Approved' status onSubmit? Has anyone does this or something similar?