Aleks
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.
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.
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)
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.
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.
http://formvalidation.io/examples/form-submit-twice/
So you will need to circumvent that safety mechanism in the plugin.
ASKER
Ill read it and see what can be done.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
ASKER
Your Da' Man !
ASKER
Perfect !