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
validate single fields on change?
Re: validate single fields on change?
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.
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?
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"
- 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"