Hi,
I've issue with the value of the checkbox not able to show on form submission. It show only as {contact_preference} without any value, similar for {contact_timing} . I'm using the Form Wizard to create the form.
I've been trying to look for solution in the forum, but to not available. Please advice.
Form Code
My Email Form Template
I've issue with the value of the checkbox not able to show on form submission. It show only as {contact_preference} without any value, similar for {contact_timing} . I'm using the Form Wizard to create the form.
I've been trying to look for solution in the forum, but to not available. Please advice.
Form Code
<div class="ccms_form_element cfdiv_text" id="_your_name__container_div"><label>*Your Name :</label><input maxlength="150" size="30" class=" validate['required']" title="" label_over="0" hide_label="0" type="text" value="" name="name" />
<div class="clear"></div><div id="error-message-name"></div></div><div class="ccms_form_element cfdiv_text" id="_your_email__container_div"><label>*Your Email :</label><input maxlength="150" size="30" class=" validate['required','email']" title="" label_over="0" hide_label="0" type="text" value="" name="email" />
<div class="clear"></div><div id="error-message-email"></div></div><div class="ccms_form_element cfdiv_text" id="_your_phone__container_div"><label>*Your Phone :</label><input maxlength="150" size="30" class=" validate['required']" title="" label_over="0" hide_label="0" type="text" value="" name="phone" />
<div class="clear"></div><div id="error-message-phone"></div></div><div class="ccms_form_element cfdiv_text" id="evening_phone__container_div"><label>Evening Phone :</label><input maxlength="150" size="30" class="" title="" label_over="0" hide_label="0" type="text" value="" name="evening_phone" />
<div class="clear"></div><div id="error-message-evening_phone"></div></div><div class="ccms_form_element cfdiv_checkboxgroup" id="contact_preference__container_div"><label for="contact_preference">Contact Preference :</label><input type="hidden" name="contact_preference" value="" alt="ghost" />
<input type="checkbox" name="contact_preference[]" id="contact_preference_phone_preference" title="" value="phone_preference" class="">
<label for="contact_preference_phone_preference">Phone</label>
<input type="checkbox" name="contact_preference[]" id="contact_preference_email_preference" title="" value="email_preference" class="">
<label for="contact_preference_email_preference">EMail</label>
<div class="clear"></div><div id="error-message-contact_preference"></div></div><div class="ccms_form_element cfdiv_checkboxgroup" id="contact_time__container_div"><label>Contact Time :</label><input type="checkbox" name="contact_timing[]" id="contact_timing_timing1" title="" value="timing1" class="">
<label for="contact_timing_timing1">Morning</label>
<input type="checkbox" name="contact_timing[]" id="contact_timing_timing2" title="" value="timing2" class="">
<label for="contact_timing_timing2">Afternoon</label>
<input type="checkbox" name="contact_timing[]" id="contact_timing_timing3" title="" value="timing3" class="">
<label for="contact_timing_timing3">Evening</label>
<div class="clear"></div><div id="error-message-contact_timing"></div></div><div class="ccms_form_element cfdiv_select" id="_objective__container_div"><label>*Objective :</label><select size="1" label_over="0" hide_label="0" class="" title="" type="select" name="objective">
<option value="Arrange_Viewing">I'd like to arrange for viewing</option>
<option value="More_Information">I'd need more information</option>
<option value="Property_for_Sale_Rent">I've a similar property for sale/rent</option>
<option value="My_Friend_Interested">I'd like to recommend my friends/relatives</option>
<option value="Other_enquiries">Other Enquiries</option>
</select>
<div class="clear"></div><div id="error-message-objective"></div></div><div class="ccms_form_element cfdiv_text" id="_subject__container_div"><label>*Subject :</label><input maxlength="300" size="73" class=" validate['required']" title="" label_over="0" hide_label="0" type="text" value="" name="subject" />
<div class="clear"></div><div id="error-message-subject"></div></div><div class="ccms_form_element cfdiv_textarea" id="special_requests_comments__container_div"><label>Special Requests / Comments :</label><textarea cols="45" rows="12" class="" title="" label_over="0" hide_label="0" type="textarea" name="comments"></textarea>
<div class="clear"></div><div id="error-message-comments"></div></div><div class="ccms_form_element cfdiv_submit" id="input_submit_7_container_div"><input name="input_submit_7" class="" value="Submit Request" type="submit" />
<div class="clear"></div><div id="error-message-input_submit_7"></div></div>
My Email Form Template
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
*Your Name :
</td>
<td>
{name}
</td>
</tr>
<tr>
<td>
*Your Email :
</td>
<td>
{email}
</td>
</tr>
<tr>
<td>
*Your Phone :
</td>
<td>
{phone}
</td>
</tr>
<tr>
<td>
Evening Phone :
</td>
<td>
{evening_phone}
</td>
</tr>
<tr>
<td>
Label Text
</td>
<td>
{input_checkbox_group_11}
</td>
</tr>
<tr>
<td>
Contact Preference :
</td>
<td>
{contact_preference_phone_preference}
{contact_preference_email_preference}
{phone_preference}
{email_preference}
</td>
</tr>
<tr>
<td>
Contact Time :
</td>
<td>
{contact_timing}
</td>
</tr>
<tr>
<td>
*Objective :
</td>
<td>
{objective}
</td>
</tr>
<tr>
<td>
*Subject :
</td>
<td>
{subject}
</td>
</tr>
<tr>
<td>
Special Requests / Comments :
</td>
<td>
{comments}
</td>
</tr>
</table>
Hi boonchunt,
A couple of things here. Mainly that you need to drag a Handle Arrays action into the OnSubmit event and move it up before the Email action.
You should also regenerate the Email template as the one you posted here no longer matches the form inputs.
ChronoForms v4 RC 2,0 has 'ghost' inputs that you can use to set a default value for checkbox groups - these values will show up if nothing is selected in the form itself.
Bob
A couple of things here. Mainly that you need to drag a Handle Arrays action into the OnSubmit event and move it up before the Email action.
You should also regenerate the Email template as the one you posted here no longer matches the form inputs.
ChronoForms v4 RC 2,0 has 'ghost' inputs that you can use to set a default value for checkbox groups - these values will show up if nothing is selected in the form itself.
Bob
This topic is locked and no more replies can be posted.