Subject not appearing in email from Formlt

I am trying to get the subject line in my email?
This is my email tpl:

`<br />[[+name]] ([[+email]]) Wrote: <br />


And here is my template:

      &successMessage=`<h3>Success! Your enquiry has been sent.</h3>`
<h2>Contact Form</h2>


<form action="[[~[[*id]]]]" method="post" class="form">
    <input type="hidden" name="workmail" value="" />

    <label for="name">
        <span class="error">[[!]]</span>
    <input type="text" name="name" id="name" value="[[!]]" />

    <label for="email">
        <span class="error">[[!]]</span>
    <input type="text" name="email" id="email" value="[[!]]" />

    <label for="subject">
        <span class="error">[[!+fi.error.subject]]</span>
    <input type="text" name="subject" id="subject" value="[[!+fi.subject]]" />

    <label for="text">
        <span class="error">[[!+fi.error.text]]</span>
    <textarea name="text" id="text" cols="55" rows="7" value="[[!+fi.text]]">[[!+fi.text]]</textarea>
    <div class="form-buttons">
        <input type="submit" value="Send Contact Inquiry" />

And this is what I get in my email:


<br>dale ( Wrote: <br>
test template<!--I think this is the subject-->

Has it worked</p></body></html>

Using a Subject Field as the Email Subject Line

1 Like

How did I miss that, thanks.

1 Like

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.