Hi, I've created a process and after kick off the process, assigned user can approve/reject the form in workspace. Can I detect which button is pressed in the form and perform different validation before the form is submitted back to server?
For example, the form got field A & field B, if Approve button is pressed, field A will be a manadated field and if Reject button is pressed, field B will be a manadated field. As in my form I only got a submit button and the Approve/Reject button is generated from workspace, so I am not sure how to detect which button is pressed in the form? Thanks.
Solved! Go to Solution.
I think you may have to change your form design a bit.
I would suggest add the Approve and Reject buttons to your form rather than route names, so that way you have control over actions.