Page 1 of 1

validate single fields on change?

Posted: 2011-12-19 11:50
by antonio
Hi all,
I have a really complex form with validation and it works well.
But since it is a long form it is a pain to get validation results only when submitting the form whole.
Is there a way to trigger the validation fields by fields?

Example: once I insert the email and change field I get validation for this email field.
So, I can correct errors while I'm filling the form.

Is there a way to do this directly in ADDT without jquery?

TIA

tony

Re: validate single fields on change?

Posted: 2011-12-19 14:13
by Fred
Probably not because the form is "static" i.e. nothing is happening when you enter or leave a field.
You need to check the value when the user exits the field and the only way would be jquery.

If it is a long for why don't you split it into different pages?
Change your "submit" button to "next" and point to the next section (page) and the last section would have the usual redirection back to where ever it is suppose to go after submission.

Re: validate single fields on change?

Posted: 2012-01-05 19:22
by jlig
Antonio, I think you could try using the Dreamweaver builtin "Spry Validation Text Field" on your ADDT fields..
- Click the field on your form
- Go to the Spry menu & choose "Spry Validation Text Field"
- Check the boxes "Blur" , "Change", "Required"
- Change the Preview States dropdown to "Required"