Forums

checkbox groups

kdbates 05 Apr, 2011
Hi Bob,

Thank you so much for answering my recent posts. I am having some good success with the multi-page plug-in.

I have a group of checkboxes but the values are not coming through in the email. Here is the html code:
<tr>
<td valign="middle">
	<div class="cf_item">
   	  <h3 class="cf_title" style="width: 200px;">Please check the days you are available to work?</h3>
	</div></td>
<td valign="top">
<div class="cf_fields">

	<div align="right">
    <label class="cf_label" >Monday    </label>
    <label for="check00" class="cf_chkboxLabel cf_block">
      <input name="monday[]" id="check00" title="" type="checkbox" class="cf_checkbox radio" value="AM" />
      AM</label>
    

      <label for="check01" class="cf_chkboxLabel cf_block">
      <input name="monday[]" id="check01" title="" type="checkbox" class="cf_checkbox radio" value="PM" />
      PM</label>
  </div>
  <label class="cf_botLabel"></label>
  <label class="cf_leftLabel"></label>
</div>
</div>
<div class="cf_fields">
	<div align="right">
    <label class="cf_label" >Tuesday    </label>
      <label for="check10" class="cf_chkboxLabel cf_block">
      <input name="Tuesday[]" id="check10" title="" type="checkbox" class="cf_checkbox radio" value="AM" />
      AM</label>
    

      <label for="check11" class="cf_chkboxLabel cf_block">
      <input name="Tuesday[]" id="check11" title="" type="checkbox" class="cf_checkbox radio" value="PM" />
      PM</label>
  </div>
  <label class="cf_botLabel"></label>
  <label class="cf_leftLabel"></label>
</div>
</div>
<div class="cf_fields">
	<div align="right">
    <label class="cf_label" >Wednesday    </label>
      <label for="check20" class="cf_chkboxLabel cf_block">
      <input name="Wednesday[]" id="check20" title="" type="checkbox" class="cf_checkbox radio" value="AM" />
      AM</label>
    

      <label for="check21" class="cf_chkboxLabel cf_block">
      <input name="Wednesday[]" id="check21" title="" type="checkbox" class="cf_checkbox radio" value="PM" />
      PM</label>
  </div>
  <label class="cf_botLabel"></label>
  <label class="cf_leftLabel"></label>
</div>
</div>
<div class="cf_fields">
	<div align="right">
    <label class="cf_label" >Thursday    </label>
      <label for="check30" class="cf_chkboxLabel cf_block">
      <input name="thursday[]" id="check30" title="" type="checkbox" class="cf_checkbox radio" value="AM" />
      AM</label>
    

      <label for="check31" class="cf_chkboxLabel cf_block">
      <input name="thursday[]" id="check31" title="" type="checkbox" class="cf_checkbox radio" value="PM" />
      PM</label>
  </div>
  <label class="cf_botLabel"></label>
  <label class="cf_leftLabel"></label>
</div>
</div>
<div class="cf_fields">
	<div align="right">
    <label class="cf_label" >Friday    </label>
      <label for="check40" class="cf_chkboxLabel cf_block">
      <input name="friday[]" id="check40" title="" type="checkbox" class="cf_checkbox radio" value="AM" />
      AM</label>
    

      <label for="check41" class="cf_chkboxLabel cf_block">
      <input name="friday[]" id="check41" title="" type="checkbox" class="cf_checkbox radio" value="PM" />
      PM</label>
  </div>
  <label class="cf_botLabel"></label>
  <label class="cf_leftLabel"></label>
</div>
</div>
<div class="cf_fields">
	<div align="right">
    <label class="cf_label" >Saturday    </label>
      <label for="check50" class="cf_chkboxLabel cf_block">
      <input name="saturday[]" id="check50" title="" type="checkbox" class="cf_checkbox radio" value="AM" />
      AM</label>
    

      <label for="check51" class="cf_chkboxLabel cf_block">
      <input name="saturday[]" id="check51" title="" type="checkbox" class="cf_checkbox radio" value="PM" />
      PM</label>
  </div>
  <label class="cf_botLabel"></label>
  <label class="cf_leftLabel"></label>
</div>
</div>
<div class="cf_fields">
	<div align="right">
    <label class="cf_label" >Sunday    </label>
      <label for="check60" class="cf_chkboxLabel cf_block">
      <input name="sunday[]" id="check60" title="" type="checkbox" class="cf_checkbox radio" value="AM" />
      AM</label>
    

      <label for="check61" class="cf_chkboxLabel cf_block">
      <input name="sunday[]" id="check61" title="" type="checkbox" class="cf_checkbox radio" value="PM" />
      PM</label>
  </div>
  <label class="cf_botLabel"></label>
  <label class="cf_leftLabel"></label>
</div>
</div></td>
<td valign="top"> </td>
</tr>


Here is my email template:
Monday {monday[]} / {monday[]}
Tuesday {Tuesday[]} / {Tuesday[]}
Wednesday {Wednesday[]} / {Wednesday[]}
Thursday {thursday[]} / {thursday[]}
Friday {friday[]} / {friday[]}
Saturday {saturday[]} / {saturday[]}
Sunday {sunday[]} / {sunday[]}


Can you please advise?
Thanks!
kevin
GreyHead 06 Apr, 2011
Hi Kevin,

Try using this in the template Monday {monday}

You'll need to add a Handle Arrays action and set the separator to /

Bob
kdbates 06 Apr, 2011
Thank you Bob!

You'll need to add a Handle Arrays action


Is there a sample or some documentation you can point me towards to further illustrate this?
GreyHead 06 Apr, 2011
Hi Kevin,

There's not a lot to document.

Drag a Handle Arrays Action into the OnSubmit Event and put / or space/space in the Delimiter box.

Bob
This topic is locked and no more replies can be posted.