Validation Plugin anomaly

Validation Plugin anomaly

I have a form with auto-complete working properly. The last field on the form is a checkbox (agree to terms and conditions) followed by the submit button. I complete the form and I go to a confirmation page. If I choose 'back' (one of the form buttons on my confirmation page) the system returns to my previous form and restores all of the information except the checkbox. I want to force the user to check the checkbox again.

Now it gets weird. There are two cases...

Case 1: I return to my form, click submit, get the validation error because I haven't checked the checkbox, then check the checkbox and immediately click on submit and all is ok.

Case 2: I return to my form, click directly on the checkbox then click on submit. Now the form won't submit properly.

What appears to be happening is that the checkbox validation only passes if I tab to the next field. I have seen this behavior before where if the last validated field isn't tabbed or some other field clicked BEFORE the submit, the submit fails. Is there a way to allow a form with validation to be submitted properly even if the last two clicks are for a validate field and then submit?

UPDATE: I discovered that if I remove my remote: call it works fine. When I go back to a form and don't actually click on any fields but try to re-submit the form, the remote call fails. it is odd because when I click submit, I see the little check mark graphics appear next to each field, then the page clears and it appears to be going to the confirmation page, but instead re-draws the current form with all the fields blank. If I return to my form, click on the field with the remote, then press tab, then submit, it works every time.
















    • Topic Participants

    • doug