Avatar

Level 3

Hi  hkho,

     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.

     You can do required validation on the form on button click event and if validation are successful then submit the form as part of javascript using  AWS_SUBMIT.execEvent("click");

Regards,

Vik