hi,
i'm really new to chronoforms......i just created a form which consist of a grid with 2 buttons: "add row" and "delete row" which i set onlick event function to them. after those i have an Input type=submit that i used to send the information to another page. the problem is that everytime i press the "add row" button, it does what i set in the JS function but then the form reloads and goes to the action page that i set for the submit button. the same happens with the "delete row" button. it looks like all buttons in a form submit. after the form reloads, it has a "task=send" which i dont know what is. pls i'll be glad if someone help me with this. the form code below:
i'm really new to chronoforms......i just created a form which consist of a grid with 2 buttons: "add row" and "delete row" which i set onlick event function to them. after those i have an Input type=submit that i used to send the information to another page. the problem is that everytime i press the "add row" button, it does what i set in the JS function but then the form reloads and goes to the action page that i set for the submit button. the same happens with the "delete row" button. it looks like all buttons in a form submit. after the form reloads, it has a "task=send" which i dont know what is. pls i'll be glad if someone help me with this. the form code below:
<div class="form_item">
<div class="form_element cf_heading">
<h1 class="cf_text">Test Grid Form</h1>
</div>
<div class="cfclear"> </div>
</div>
<div id="mygrid_container" style="width:650px;height:200px;"></div>
<button onclick="addRow()">Agregar Producto/Servicio</button>
<button onclick="removeRow()">Eliminar</button>
<button onclick="myDataProcessor.sendData();">Guardar</button>
<div class="form_item">
<div class="form_element cf_button">
<input value="Submit" name="button_1" type="submit" />
</div>
<div class="cfclear"> </div>
</div>