Reset button in BPM Forms

BPM, Business Process Management

Hi,
can we hav two reset buttons for two different divisions(div tabs) in forms ?

Abhishek's picture

Reset buttons are form specific

Reset button is a standard HTML feature that resets a the form it is part of. If you want to have two sections either have two forms each one having its own reset button. However, if you are using Savvion making two forms could make some values not show up. In this case, add a method onClick of the button the clear the resepective fields using javascript. Something like
<form>
<script>
function reset1(){
  document.getElementById("txt1").value="";
 document.getElementById("txt2").value="";
}
 
function reset2(){
  document.getElementById("txt3").value="";
 document.getElementById("txt4").value="";
}
 
<script>
<input type=text id="txt1" value="">

<input type=text id="txt2" value="">

<input type=text id="txt3" value="">
<input type=text id="txt4" value="">

<input type=button value="reset 1" onClick="reset1();">
<input type=button value="reset 2" onClick="reset2();">
</form>
 
Now reset 1 will reset first two fields, whereas reset 2 will reset last two fields.
 
Hope this is helpful

About BPMGeek

BPMGeek is an initiative to collaborate and communicate with the growing Business process management community out there. The goal is to help developers connect with experts, ask questions, post their learning and get understanding of BPM Concepts. Often tool specific knowledge of niche areas end up developers perplexed and confused - especially when there are very less number of resources available. We will be coming up several several new features. Have a look at our Roadmap here

BPMGeek is an independent entity not associated with any Product. All BPM product professionals are invited to contribute. The Logos and Names used across the site belong to their respective owners. The viewpoints mentioned by Individual contributors are their own. BPMgeek cannot be held liable for any issues arising out of it.