2 Replies Latest reply on Jun 28, 2012 11:56 PM by Shamal Karunarathne

    [designer][taskform] Having two submit buttons for a single form

    Shamal Karunarathne Newbie

      Hi,

      I want to have two different submit buttons ('accept' and 'reject') in one user task form. I set two different names of each 'submit' buttons. But after submitting the value of the 'Submit' key (in instance data) still is 'submit'.

      How can I differentiate which submit button was clicked?

       

       

      {code}

      <div class="button_div">

                      <input name="Accept" type="submit" value="test" class="buttons" />

                      <input name="Reject" type="submit" value="test2" class="buttons" />

                    </div>

                  </form>{code}

       

       

      Screen Shot 2012-06-28 at 4.14.47 PM.png

       

      thanks.