Hello,
I'm trying to make a form with a checkbox which we can select as many as we want.
I succeed to make a form and receive the mail to my company email address
but in the autoresponder email, it doesn't show the answers.
These two doesn't show any answers in autoresponder email.
contact-form-興味のあるオプショナルツアー[]
realestate-enquiry-projects[]
I prefer to use the checkbox than the multiple select.
ID and Password for the demo site are below.
ID :kagura
Password: kagura0980
If you need more information, please let me know.
【Form.html】
<div class="form-group" id="contact-form-optionaltour">
<label class="form-check-label nott"
for="contact-form-optionaltour">興味のあるオプショナルツアー(複数回答可) <span
class="form-required">必須</span></label>
<div class="form-check">
<label for="contact-form-optionaltour-1"><input
class="form-check-input required valid checkbox"
type="checkbox" name="contact-form-興味のあるオプショナルツアー[]"
id="contact-form-optionaltour-1"
value="日本って何だろう?~心のふるさと伊勢神宮を訪ねて~(3~4時間程度)">
日本って何だろう?(3~4時間程度)</label>
<label for="contact-form-optionaltour-1"><input
class="form-check-input required valid checkbox"
type="checkbox" name="contact-form-興味のあるオプショナルツアー[]"
id="contact-form-optionaltour-2"
value="日本って何だろう?~心のふるさと伊勢神宮を訪ねて~30分程度">
日本って何だろう?(30分程度)</label>
<label for="contact-form-optionaltour-3"><input
class="form-check-input required valid checkbox"
type="checkbox" name="contact-form-興味のあるオプショナルツアー[]"
id="contact-form-optionaltour-3" value="お伊勢参り全部廻り">
お伊勢参り全部廻り</label>
</div>
</div>
<div class="form-group">
<label>Projects:</label>
<select class="form-select required valid"
name="realestate-enquiry-projects[]"
id="realestate-enquiry-projects" multiple="" aria-invalid="false">
<option value="Future Apartments">Future Apartments</option>
<option value="Amazing Condo Groups">Amazing Condo Groups</option>
<option value="City Residency">City Residency</option>
<option value="Prime Housing Society">Prime Housing Society</option>
<option value="Kings Villa Groups">Kings Villa Groups</option>
</select>
<label id="realestate-enquiry-projects-error" class="error"
for="realestate-enquiry-projects" style="display: none;"></label>
</div>【Form.php】
$ar_message = !empty( $submits['ar_message'] ) ? $submits['ar_message'] :
【お名前】{contact-form-お名前}<br>
【フリガナ】{contact-form-ふりがな}<br>
【Email】{contact-form-email}<br>
【電話番号】{contact-form-電話番号}<br>
【ご希望の連絡方法】{contact-form-ご希望の連絡方法}<br>
【興味のあるオプショナルツアー】<br>
{contact-form-興味のあるオプショナルツアー[]}<br>
【伊勢旅行の予定 】<br>
{contact-form-伊勢旅行の予定}<br>
【相談内容】<br>
{contact-form-相談内容}<br>
【ご相談内容詳細】<br>
{contact-form-ご相談内容詳細}<br>
プロジェクト<br>
{realestate-enquiry-projects[]}<br>