Link to home
Start Free TrialLog in
Avatar of Aleks
AleksFlag for United States of America

asked on

Submitting form disables submit button

I have a form with validation for a report. When I click submit and all validations pass the 'submit' button disables itself. How can I prevent this from happening ?

Sometimes user just needs to go back and add a new selection and submit the form again, if it gets disabled then user has to reload the page and make all the selections again.
Avatar of zephyr_hex (Megan)
zephyr_hex (Megan)
Flag of United States of America image

There is likely something on your form that is disabling that button.  It is often used as a technique to prevent multiple submissions of a form (i.e.  to prevent the user from clicking submit twice)
Avatar of Aleks

ASKER

Could it be the validation script ?  I am using this to validate my forms:

http://formvalidation.io/

I tried this:

http://formvalidation.io/examples/cant-submit-form-after-validation/

but the name and id of the buttom is "go" so that's not the issue.
Yes. That plugin is designed to prevent the form from being submitted successfully multiple times:

http://formvalidation.io/examples/form-submit-twice/

So you will need to circumvent that safety mechanism in the plugin.
Avatar of Aleks

ASKER

Ill read it and see what can be done.
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aleks

ASKER

Does it re-load when the form is submitted ?
depends if you have caching enabled or not. give it a shot and see if it works
Avatar of Aleks

ASKER

Your Da' Man !
Avatar of Aleks

ASKER

Perfect !