Client and Server side means Validating twice.
I made a registration page using Data Bridge 1.0.4 (just noticed 1.0.5 was released yesterday) with text, menu, checkboxes and radio group fields. I also added a re-enter email field to verify the emails match. Both email and re-enter email fields had email validations added in the wizard. After creating the form, I added a Like Entry validation to the re-enter email field for the match. This all works.
On testing, I notice that the client side Spry validations have to pass before the form is sent to the server for server side validations.
Looking at the form it seems that all validating fields are Spry except for the radio buttons and the Like Entry which are validated server side - as they're not included in the list of Spry.Widget.ValidationTextField variables right at the bottom of the page.
To me, this means that if an applicant fails one of the client Spry validations and also fails a radio button or email Like Entry, they will only see the failed validation notices for the client side validations because the form hasn't yet been sent to the server. Only when all the Spry validations pass is the form sent to the server and server side validation failures are seen by the applicant.
This means the applicant doesn't see any server validation failures until all client validations are cleared first. This means that the submit button may have to be clicked twice, once to see all the client side failures and once they are passed, again to see any server side failures.
Is it possible to have all validations client side so that all validation failure warning can be seen at once? Or alternatively, all server side (probably not as secure as client side validation).
Am I understanding this correctly?
Any help greatly appreciated.