Hey Guys-
I have a quiz on my site that I need to validate one specific answer in a group of radio buttons. As far as I know, ChronoForms only gives the ability to validate whether at least one radio button was chosen, well I need to validate that a specific answer was chosen and still keep the buttons in groups. Right now, I have all the buttons named differently so users could just check all of the answers and have it go through. I am not great with JS, so I was hoping someone might be able to help me with the code, I have found the mooValidation.js file and I know where to put it, I just need to know the specific code for validating specific buttons within a group.
Thanks!
I have a quiz on my site that I need to validate one specific answer in a group of radio buttons. As far as I know, ChronoForms only gives the ability to validate whether at least one radio button was chosen, well I need to validate that a specific answer was chosen and still keep the buttons in groups. Right now, I have all the buttons named differently so users could just check all of the answers and have it go through. I am not great with JS, so I was hoping someone might be able to help me with the code, I have found the mooValidation.js file and I know where to put it, I just need to know the specific code for validating specific buttons within a group.
Thanks!
Hi arkmedia,
I think in this case you need to use your own custom JS code, its not very hard to write! you can find many examples online!
Regards
Max
I think in this case you need to use your own custom JS code, its not very hard to write! you can find many examples online!
Regards
Max
Hi arkmedia,
If you use the moo-validation code you could make one button 'required' but then a validation error message will show up if they tick the wrong box which kind of defeats the purpose of a quiz.
Bob
If you use the moo-validation code you could make one button 'required' but then a validation error message will show up if they tick the wrong box which kind of defeats the purpose of a quiz.
Bob
Yes! I have this same question.
My quiz works here:
http://www.laseru.com/laseru/classroom/course1/quiz/popquiz.htm
but I'd rather have it in my new joomla site and it does not work here:
http://beta.laseru.com/index.php?option=com_chronocontact&chronoformname=course1quiz
Help!
LaserU
My quiz works here:
http://www.laseru.com/laseru/classroom/course1/quiz/popquiz.htm
but I'd rather have it in my new joomla site and it does not work here:
http://beta.laseru.com/index.php?option=com_chronocontact&chronoformname=course1quiz
Help!
LaserU
Hi lasreru,
You need to make some small changes to your Quiz code. In line 29 of quizconfig.js there is the line
I notice that there's also a reference to your old site url in there as well and possibly some other changes that I didn't spot.
Bob
You need to make some small changes to your Quiz code. In line 29 of quizconfig.js there is the line
var thequestion=eval("document.myquiz.question"+q)
. In ChronoForms your form is now called ChronoContact_course1quiz so this line has to be changed to var thequestion=eval("document.ChronoContact_course1quiz.question"+q)
I notice that there's also a reference to your old site url in there as well and possibly some other changes that I didn't spot.
Bob
This topic is locked and no more replies can be posted.