Hi,
I am trying to count the number of checkbox which was checked in one of the field in a related record, but I am not sure what am I doing wrong because instead bring the number of that related record it is showing me the number from all the records. (i.e. if I check a,b,c in one record I would like to be showing as 3
if I check d,e,f it should showing 3 check box has been marked but right now it is showing me that 6 checkbox has been marked)
What I have until now is:
$AddFind = new FX($serverIP,$webCompanionPort);
$AddFind->SetDBData('File.fp7','Layout');
$AddFind->AddDBParam('Survey_ID', $Survey_ID);
$AddFind->AddDBParam('DetailQ1','*');
$AddFindRecord = $AddFind->FMFind();
$FoundCount = $AddFindRecord['foundCount'];
.............
<?php foreach($AddFindRecord['data'] as $SearchKey =>$SearchRecord){ ?>
<?php echo $DetailQ1[] = $SearchRecord['DetailQ1'][0];?>
<?php }?>
Any help will be appreciated.
Thank you!