Hi! I have a curious issue. I have created a new FormItcontact form on a website, with the code being an exact replica of code I am using on another site without issue, incl. the tpl chunk.
However, on this new site, the form will send an email copy to the customer completing the form, but will not send it to the address under emailTo. Also, when clicking the submit button, the success message doesn’t show. There is also no record of the form having been sent in the Manager FormIT list.
Has anybody come across this before? It’s a new one to me.
Thanks for any suggestions!
<div class="row">
<div class="col-12 col-sm-10 offset-sm-1 col-md-8 offset-md-2 text-center">
[[!FormIt?
&hooks=`spam,email,FormItSaveForm`
&emailTpl=`contactEmailTpl`
&emailTo=`xxxxx@xxxxxx.xxx`
&emailSubject=`Message from contact form`
&successMessage=`1`
&successMessagePlaceholder=`fi.successMessage`
&validate=`
name:required,
email:email:required,
subject:required,
message:required:stripTags`
]]
<!-- Contact Form -->
[[!+fi.validation_error_message:notempty=`<p>[[!+fi.validation_error_message]]</p>`]]
<div class="contact-form">
<form action="[[~[[*id]]]]" method="post" id="contactform">
<div class="form-row">
<div class="col-12 col-sm-6">
<input type="text" id="name" name="name" placeholder="Name" value="[[!+fi.name]]" required>
</div>
<div class="col-12 col-sm-6">
<input type="email" id="email" name="email" placeholder="E-Mail" value="[[!+fi.email]]" required>
</div>
</div>
<input type="text" id="subject" name="subject" placeholder="Subject" value="[[!+fi.subject]]" required>
<textarea name="message" id="message" placeholder="Message" value="[[!+fi.message]]">[[!+fi.message]]</textarea>
<br class="clear" />
<br class="clear" />
[[!+fi.successMessage:is=``:then=`
<button class="button button-lg button-rounded button-outline-dark-2" type="submit">Send Message</button>
`:else=``]]
</form>
<!-- Submit result -->
<div class="submit-result">
[[!+fi.successMessage:notempty=`
<span id="success" style="display:block;">Thank you! Your Message has been sent.</span>
`]]
<span id="error">Something went wrong, Please try again!</span>
</div>
</div><!-- end contact-form -->
</div>
</div><!-- end row -->