Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorjonmansey
    • CommentTimeFeb 2nd 2008
     
    Hi

    Im implementing the wforms_validation on my site, my forms have a cancel and delete button that do not require validating, how do I bypass validation for these buttons? I suppose I could create a separate form just for them, but it seems kludgy. I also read about changing the type from submit to button, but i cant seem to make the onsubmit work now. Any tips appreciated.

    Jon
    • CommentAuthorcedsav
    • CommentTimeFeb 4th 2008
     
    To bypass the validation you can simply add a onclick event handler on your button like this:

    <input type="submit" value="Cancel" onclick="this.form.submit()" />

    (from memory, but I think it should work)


    PS: wForms v3.0 is out at http://wforms.googlecode.com