2 Replies Latest reply: Aug 26, 2010 2:31 PM by deepthi48710 RSS

    AWS_ACTION takes the same value

    deepthi48710 Community Member

      My form has 2 routes/buttons:  Approve and Reject.

      If the form is rejected, I must validate that they entered comments in
      the reject field before submitting.

      How do I find the value of which button is selected through
      javascript...so that I can enforce my validation?


      I tried giving an alert message at the beginning of the script to display the aws_action value and it seems to display "approve" for both the buttons.

      the aws_choice always seems to take the first choice value . How do I resolve this ?