javascriptformsformvalidation-pluginformvalidation.io

Multiple submit buttons with Formvalidation.io


I have 2 submit buttons in my form:

<button type="submit" name="save_and_stay">Save and stay</button>
<button type="submit" name="save">Save and get back</button>

Unfortunately, name values are not send to the server by formvalidation.io.

Seems related to what 'DefaultSubmit' plugin doc says :

Do NOT use name="submit" or id="submit" for the Submit button

Is there any way to make it work?

Secondary question: is there any issue tracker for formvalidation.io?


Solution

  • Found a solution: using aspNetButton attribute for SubmitButton plugin.

        submitButton: new FormValidation.plugins.SubmitButton({
            //-- make multiple submits work
            aspNetButton: true
        }),
    

    And for the second question: no, formvalidation.io has no issue tracker but the developer answers to emails.