I have a form which is used as a profile editor using the UpdateProfile snippet. Users populate this data when they initially register, and the data is confirmed present when their profile is checked through the manager.
There are dropdown selects which populate fine when using the "FormItIsSelected" placeholder, but the checkboxes do not popuate, and they are using the "FormItIsChecked" placeholder.
Im not sure if there is something special I need to do because the checkbox data is an array of data in the user's extended profile, but all data populates fine except for the checkboxes. Here is the code for the snippet call in the form chunk:
[[!UpdateProfile? &submitVar=`registerbtn`
&postHooks=`addinvestorinterests`
&validate=`range:required,
stageofevolution:required,
investmentform:required,
returnpreference:required,
holdingperiod:required,
sectors:required`
]]
And here are the checkboxes that I am trying to populate:
<input type="hidden" name="stageofevolution[]" value="" />
<input type="checkbox" class="checkbox" name="stageofevolution[]" value="Seed/Start-Up" [[!+stageofevolution:FormItIsChecked=`Seed/Start-Up`]] id="stageofevolution1" /><label for="stageofevolution1" class="checkbox">Seed/Start-Up</label>
<input type="checkbox" class="checkbox" name="stageofevolution[]" value="Emerging/early Stage" [[!+stageofevolution:FormItIsChecked=`Emerging/early Stage`]] id="stageofevolution2" /><label for="stageofevolution2" class="checkbox">Emerging/early Stage</label>
<input type="checkbox" class="checkbox" name="stageofevolution[]" value="Expansion Stage" [[!+stageofevolution:FormItIsChecked=`Expansion Stage`]] id="stageofevolution3" /><label for="stageofevolution3" class="checkbox">Expansion Stage</label>
<input type="checkbox" class="checkbox" name="stageofevolution[]" value="Late Stage" [[!+stageofevolution:FormItIsChecked=`Late Stage`]] id="stageofevolution4" /><label for="stageofevolution4" class="checkbox">Late Stage</label>
<span class="error">[[+error.stageofevolution]]</span>
Any help I can get on this would be much appreciated
[ed. note: benitosy last edited this post 14 years, 1 month ago.]