validate single fields on change?

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
antonio
Posts: 77
Joined: 2010-09-28 11:48

validate single fields on change?

Post by antonio » 2011-12-19 11:50

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

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: validate single fields on change?

Post by Fred » 2011-12-19 14:13

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.

jlig
Posts: 35
Joined: 2010-07-09 16:17

Re: validate single fields on change?

Post by jlig » 2012-01-05 19:22

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"

Post Reply