Stripped to its basic form:
[[!FormIt?
&hooks=`email, FormItSaveForm`
&formName=`Contact Form`
&emailTpl=`contactFormTpl`
&store=`1`
&emailTo=`
[email protected]`
&emailSubject=`New request from Sitename`
&emailToName=`Support`
&emailReplyTo=`
[email protected]`
&emailFrom=`
[email protected]`
&emailFromName=`Help Support`
]]
<!-- Contact Form -->
<form action="[[~[[*id]]]]" method="post" id="contact-form">
<!-- Name Input -->
<label for="full-name">Your full name</label>
<input value="[[!+fi.full-name]]" id="full-name" name="full-name" type="text">
<!-- End Name Input -->
<!-- Name Input -->
<label for="email">Your email address</label>
<input value="[[!+fi.email]]" id="email" name="email" type="email" placeholder="
[email protected]">
<!-- End Name Input -->
<!-- Name Input -->
<label for="enquiry" class="g-font-weight-500 g-font-size-16">Your question</label>
<textarea value="[[!+fi.enquiry]]" id="enquiry" name="enquiry"></textarea>
<!-- End Name Input -->
<button type="submit">Submit</button>
<!-- End Contact Form -->
I have a resource that points to the chunk with [[$form]] in the content section. Form being the name of the above code.
[ed. note: thehaag last edited this post 8 years, 6 months ago.]