Forums

CF V3 js validation

Nicodemus 10 Aug, 2011
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
GreyHead 10 Aug, 2011
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
Nicodemus 10 Aug, 2011
Not to worry Bob. You've given me another direction to investigate :wink:

Nick
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger