Page 1 of 1

checkbox does not work in field group

PostPosted: Fri Oct 14, 2011 10:07 pm
by krmillerbil
I have two groups of check boxes that work outside of a field group, but when inside a field group they do not display

field.ini code for non working check boxes
Code: Select all
[VolunteerTo]
widget:label = "Volunteered To"
widget:type = checkbox
vocabulary = VolunteerTo
group=PersonalInformation
order=21

[Position]
widget:label = "Staff and Volunteer Positions"
widget:type=checkbox
vocabulary=Position
group=PersonalInformation
order=22


code from PersonalInformation.html
Code: Select all
<table width="100%">
   

    <tr>
    <th>Employer:</th>
    <td>{$elements.Emplorer.html}</td>
    <th>Occupation:</th>
    <td>{$elements.Position.html}</td>
    <th>Spouse's Name</th>
    <td>{$elements.SpouseName.html}</td>
   
</tr>   
    <th>Donor:</th>
    <td>{$elements.Donor.html}</td>
   
    <th>Supporter:</th>
    <td>{$elements.SupportsKen.html}</td>
   
    <th>Date First Registered:</th>
    <td>{$elements.DateFirstRegistered.html}</td>
<tr>
   <th>Volunteered to:</th>
    <td>{$elements.VolunteerTo.html}</td>
   
   <th>Staff and Campaign Positions</th>
    <td>{$elements.Position.html}</td>
   
    <th>Notes:</th>
    <td colspan="9">{$elements.Notes.html}</td>
   
    </tr>
     <tr>
    <th>Total Primary Donation(cannot be changed)</th>
    <td ></font>{$elements.TotalPrimaryDonation.html}</td>
    <th>Total General Donation(cannot be changed)</th>
    <td >{$elements.TotalGeneralDonation.html}</font></td>
    </tr>
   
</table>


code from values.ini
Code: Select all
[Position]
__sql__ = "SELECT PositionID, PositionName FROM Positions"

[VolunteerTo]
__sql__= "SELECT `ActivityID`,`ActivityName` FROM `Activities`"


If I do not include them in the "group=PersonalInformation" the check boxes show up under the Detail Edit.

Any help would be appreciated.