I tried putting this HTML
<button id="b_normal" class="btn btn-danger"
onClick="ajax('{{=URL('test')}}',[],':eval')">Delete Role</button>
which I saw on a stackoverflow post. However, even when I do that and click
the button, the form ALWAYS gets submitted. I already have a submit button
so I don't understand why the form is being submitted via other buttons as
well. Does anyone know why this is???
On Monday, December 10, 2012 9:15:30 PM UTC, Daniele wrote:
>
> When I use form.add_button() I am able to add a button to a form, which I
> can display with {{=form}} in my view.
>
> However, if I'm making a custom form using form.custom, how can I display
> that button??
>
> Thanks
>
--