CF v3 and Joomla 1.5.23.
Is there any way to trigger the js validation (is it MooTools by the way?) from an ordinary button (type='button') partway through a form before any submit is made?
I'm creating a form part of which uses the MooTools slideout triggered from a button to collapse a div containing 8 radio buttons and depending on the content of those buttons then slides in another div.
Tricky bit is I want the first set of 8 radio buttons validated and the slideout stopped if validation fails. i.e. if that 'LV whatever it's called' span exists/has content/len>0 is my guess but I'm stumped trying to figure out how 😶
Nick
Is there any way to trigger the js validation (is it MooTools by the way?) from an ordinary button (type='button') partway through a form before any submit is made?
I'm creating a form part of which uses the MooTools slideout triggered from a button to collapse a div containing 8 radio buttons and depending on the content of those buttons then slides in another div.
Tricky bit is I want the first set of 8 radio buttons validated and the slideout stopped if validation fails. i.e. if that 'LV whatever it's called' span exists/has content/len>0 is my guess but I'm stumped trying to figure out how 😶
Nick
Hi Nick,
The validation library used in CFv3 is LiveValidation. While the docs make it look as though it can be controlled from within the form I've never managed to work out how to do it. Instead I wrote a document showing how to use the hidable form and validation code from QuirksMode with ChronoForms to make validatable forms with hideable sections.
Sorry if this isn't too helpful :-(
Bob
The validation library used in CFv3 is LiveValidation. While the docs make it look as though it can be controlled from within the form I've never managed to work out how to do it. Instead I wrote a document showing how to use the hidable form and validation code from QuirksMode with ChronoForms to make validatable forms with hideable sections.
Sorry if this isn't too helpful :-(
Bob
This topic is locked and no more replies can be posted.
