JBoss Community

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

created by Shamal Karunarathne in jBPM - View the full discussion

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?

 

 


<div class="button_div">
                <input name="Accept" type="submit" value="test" class="buttons" />
                <input name="Reject" type="submit" value="test2" class="buttons" />
              </div>
            </form>

 

 

 

https://community.jboss.org/servlet/JiveServlet/downloadImage/2-744716-18908/450-33/Screen+Shot+2012-06-28+at+4.09.40+PM.png

Reply to this message by going to Community

Start a new discussion in jBPM at Community