-
☆ A M B ☆
- 894 Posts
You need to fix the radio buttons to this:
<input type="radio" name="advertising[]" id="print" value="Print" [[!+fi.advertising:FormItIsChecked=`print`]]> Print
<input type="radio" name="advertising[]" id="online" value="Online" [[!+fi.advertising:FormItIsChecked=`online`]]> Online
<input type="radio" name="advertising[]" id="both" value="Both" [[!+fi.advertising:FormItIsChecked=`both`]]> Both
Make sure you remove the hidden input field with the advertising value.
That should fix it, good luck,
you will also need to change the validation to:
&validate=`first:required, last:required, advertising:required`
and there is no reason to send advertising as an array. This should be good:
<input type="radio" name="advertising" id="print" value="print" [[!+fi.advertising:FormItIsChecked=`print`]]> Print
<input type="radio" name="advertising" id="online" value="online" [[!+fi.advertising:FormItIsChecked=`online`]]> Online
<input type="radio" name="advertising" id="both" value="both" [[!+fi.advertising:FormItIsChecked=`both`]]> Both
-
☆ A M B ☆
- 894 Posts
@Bruno if this is true then we need to get the docs updated because they recommend an array.
FormIt Handling Selects and Radios
@todd.b can you post back if it works or not so I can let ScottBorys know so he can update the docs this friday.
Thanks.
@benmarte I tried your suggestion but the form would still not submit.
@Bruno17 Your suggestion worked insofar that the form did submit (with and without the hidden field) but unfortunately no value for the selected radio button was passed to the success email.
Todd
-
☆ A M B ☆
- 24,524 Posts
Multiple checkboxes and multi-select dropdowns need to be an array, but since only one radio button of a set can be selected it doesn't need to be an array.
Disregard the textarea problem. I deleted the modx cache and it seems to be working.
Todd