Contact form not sending DATE picker information

2 replies · opened Mar 1, 2020

JjhadzicMar 1, 2020

**Hello, I'm using the email contact form and I have included a DATE picker, but when the email is sent the date is not being included in the email. Can you please help? Thank you.

Here is the code:**

<div class="form-widget">
<div class="form-result"></div>
<form action="include/form.php" id="template-jobform" name="template-jobform" method="post">
<div class="form-process"></div>
<div class="col_full">
<label for="template-jobform-fname">Your name
<small></small>
</label>
<input type="text" id="template-jobform-fname" name="template-jobform-fname" value="" class="sm-form-control required"/>
</div>
<div class="clear"></div>
<div class="col_full">
<label for="template-jobform-email">Email
<small>
</small>
</label>
<input type="email" id="template-jobform-email" name="template-jobform-email" value="" class="required email sm-form-control"/>
</div>
<div class="col_full">
<label for="template-jobform-email">Phone
<small></small>
</label>
<input type="email" id="template-jobform-email" name="template-jobform-email" value="" class="required email sm-form-control"/>
</div>
<div class="clear"></div>
<div class="col_half">
<label for="template-jobform-salary">Number of guests</label>
<input type="text" name="template-jobform-salary" id="template-jobform-salary" value="" size="22" tabindex="6" class="sm-form-control"/>
</div>
<div class="col_half col_last">
<div class="input-daterange travel-date-group bottommargin-sm">
<label for="template-jobform-time">Date</label>
<input type="text" value="" size="22" tabindex="6" class="form-control tleft default" placeholder="MM/DD/YYYY">
</div>
</div>
<div class="clear"></div>
<div class="col_full">
<label for="template-jobform-application">Message
<small>
</small>
</label>
<textarea name="template-jobform-application" id="template-jobform-application" rows="6" tabindex="11" class="sm-form-control required"></textarea>
</div>
<div class="col_full hidden">
<input type="text" id="template-jobform-botcheck" name="template-jobform-botcheck" value="" class="sm-form-control"/>
</div>
<div class="col_full">
<button class="button button-3d button-large btn-block nomargin" name="template-jobform-apply" type="submit" value="apply">Send INQUIRY</button>
</div>
<input type="hidden" name="prefix" value="template-jobform-">
</form>

SSemicolon WebSTAFFMar 2, 2020

Hello,

The DatePicker <input> Tag does not include any name Attribute, which is why no information is sent:

Simply add a name Attribute for your Input tag, like, name="template-jobform-date" to be included in your Form Emails.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

JjhadzicMar 3, 2020

Thanks!! :)

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard