Having an issue getting the value of my checked boxes output in my email chunk
this is the html form
<label><input type="checkbox" name="sh[]" value="Fashion" [[!+fi.sh:FormItIsChecked=`Fashion`]]>Fashion</label>
the chunk:
<b>Type Of Shoot:</b> [[+sh]]
when I recieve an email, all the other fields come out right, but my check box comes back as:
Type Of Shoot: [[+sh]]
the value of the checked box is not being inserted there.
what am I missing
It might be because unchecked checkboxes are not placed in the $_POST array. You need a hidden field of the same name.
See this:
http://rtfm.modx.com/display/ADDON/FormIt.Handling+Selects,+Checkboxes+and+Radios