how to submit a form when a button is clicked

hello friends,

I have created a dynamic form containing a button, when it is pressed it should navigate to the “one.php” page.


isc.DynamicForm.create({
ID:“dyn_frm”,
fields:[
{name:“btn”,title:“Submit”,type:“button”}
]
})


what i need to include to the above code,
when i click above button it should take me to the “one.php” page..

please help me,

Thanks in advance,
kranthi

You can override saveData() method of Dynamicform to have below:

dyn_frm.saveData();

or you can simply track a click event when you declare a DynamicForm.