Checkbox group in multiplier with data from database

teazmo 03 Jan, 2016
Hi guys,
The multiplier function is amazing. I use it so that firms can sign up their staff members for courses. My chronoforms form starts with a selection of courses, then in the second step you can add as many members as you like with the multiplier, fill in their forms and assign them to the courses through the use of a checkbox group. The only problem is, I don't know how to combine data from the database with the checkbox group in a multiplier. Do I use dynamic data fields? How would it look like in this case?

Thanks,

Timo
teazmo 03 Jan, 2016
I've added a screenshot of a single multiplier form to visualise my idea.
GreyHead 04 Jan, 2016
Hi Timo,

Sorry, I don't understand what you need to combine in the multiplier - please can you spell it out in more detail?

Bob
teazmo 10 Jan, 2016
Hi Bob,

I use a database with the id of the course, the name of the course and other information about the course as one dataset.

In my multiplier or let’s say in a single form I'd like to provide an opportunity to sign up a person for the course. There he or she can enter the name and address. But before he or she can do that, he or she needs to choose a course, because there is also a possibility to choose several courses. So before one can enter the name there is a checkbox group with all the courses chosen.
The checkbox looks like this:

<input type="checkbox" name="course" value="12" /><label> Course 12</label>
<input type="checkbox" name="course" value="23" /><label> Course 23</label>

The key is the name of the course, the value is the id of the course. I need to grab these values from the database.

I have to use the multiplier, because I need to validate the checkbox group: A person without a course means the booking is useless. :-(

Thanks,

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