View Full Version : Multiple Record Insert with Checkboxes
jwright114936
06-05-2009, 09:49 AM
I have form with a Data Assist Repeat Selection containing a checkbox using Multiple Record Insert. It will only insert a record if it hasn't encountered an unchecked box. In otherwords, the first checkbox has to be checked or the second box will be ignored. Then if the second box isn't checked the third will be ignored. I have tried with both "Skip if empty" as always insert and as a value stateExperID .
Ideas?
Ray Borduin
06-05-2009, 10:06 AM
I have an idea I think will work.... add a hidden element to the page directly before or after the checkbox in the same cell:
<input name="hid_<?php echo $RepeatSelectionCounter_1; ?>" type="hidden" value="1"/>
and update the line of code:
$WA_loopedFields = array("stateExperID");
to:
$WA_loopedFields = array("hid");
I think the problem has to do with only having a checkbox in the repeated form. Adding and referencing the hidden form element it would appear should fix the problem.
jwright114936
06-05-2009, 10:24 AM
Yes it worked.
Thanks,
Jack
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.