Forums

CF5 checkbox group validation help

Quizich 24 Feb, 2014
Hi everybody,

Firstly, I'm kinda new to CF and have been truly impressed with it so far - but while trying to implement feature required from a form on my company's web site I've hit a brick wall. I've been on a forum for a week or so trying to find any kind of help regarding my problem but haven't got much luck.

Here's the deal - I'm required to make job application form on my company's web site with some extra validation. I've managed to make data input masks where that kind of input check was required, but problem is checkbox group and requirement to ensure that sender (applicant) selects at least one option but, at the same time, that he can't select more that two of them. If applicant clicks on third option, he should be presented with message saying something like "Sorry, you can select only 2 options. Please check your selection." and third selected box should be unchecked automatically.

I did found a post in CF forum here, which describes similar problem solved for CF4 and Joomla 1.7 (or 2.5, I'm not sure) - and I've tried to implement it, but without any success ... either I'm not doing it correctly (which would probably be the case here) or CF 5 handles custom validation a bit differently than CF 4. Reason why I say that problem is me is that, up to now, I've never done anything useful in JS - actually, I haven't done any coding in JS ... ever. Therefore, complete JS noob here ... 😶

Anyhow, I've attached a backup file of my form for reference, and you can access form via this link http://phoenix2.mycpanel.rs/ba/index.php/ba/posao - form is in my native language, but you can get a picture (hopefully) ... I would highly appreciate any kind of guidance and/or help here ...
Quizich 24 Feb, 2014
And, here's above mentioned backup file of form that I've been yapping about ... sorry.
This topic is locked and no more replies can be posted.