<p>By default, several fields do not display in the default Email Template such as the Hidden Field, Invisible Field, Section Heading Field, Private Notes Field, and Custom HTML field.</p>

<p>If you'd like to display any or all of those fields, you can override the default email template by in your Notification Email settings. Select the "Custom Templates" option and add a path to a folder in your template folder where you will place your <code>email.twig</code> override file. More info on <a href="https://sprout.barrelstrengthdesign.com/docs/forms/notifications.html" rel="nofollow noreferrer">Notifications and Email Template overrides</a> in our docs.</p>

<p>You can copy the default Email Template as a starting point and the line that you'll want to update is <code>{% for field in fields if not field.isPlainInput() %}</code> which you can see <a href="https://github.com/barrelstrength/craft-sprout-forms/blob/v3.0.0-beta.44/src/templates/_integrations/sproutemail/emailtemplates/basic/email.twig" rel="nofollow noreferrer">here</a>.</p>

<p>You can remove the <code>if not field.isPlainInput()</code> condition in that for loop to display all fields in your email. And conditionally hide or handle other fields uniquely in your templates by targeting them by their unique folder name: <code>field.getFieldInputFolder()</code>.</p>

CC BY-SA 4.0
2019-02-26T15:00:58.797Z
2019-02-26T15:00:58.797Z
Ben Parizek
<p>I need to include the contents of a hidden field in my form's notification emails. I know the field value is being captured, as I can see it in the CP, but it's not included in the emails.</p>

<p>I thought maybe I needed to create custom template, but the path to the default Sprout Email templates in the docs is no longer accurate.</p>

<p>I'm using Sprout Forms 3.0.0-beta.44 and Craft 3.1.14 </p>

<plugin-sproutforms><plugin-sproutemail>
Sprout Forms - include hidden fields in notification emails
# Sprout Forms - include hidden fields in notification emails

(Asked by: username_0 on 2019-02-22)

I need to include the contents of a hidden field in my form's notification emails. I know the field value is being captured, as I can see it in the CP, but it's not included in the emails.

I thought maybe I needed to create custom template, but the path to the default Sprout Email templates in the docs is no longer accurate.

I'm using Sprout Forms 3.0.0-beta.44 and Craft 3.1.14

**Tags:** plugin-sproutforms, plugin-sproutemail

---

## 1 answers

### Answer by username_1 on 2019-02-26. Score: 3 | Accepted answer

By default, several fields do not display in the default Email Template such as the Hidden Field, Invisible Field, Section Heading Field, Private Notes Field, and Custom HTML field.

If you'd like to display any or all of those fields, you can override the default email template by in your Notification Email settings. Select the "Custom Templates" option and add a path to a folder in your template folder where you will place your `email.twig` override file. More info on [Notifications and Email Template overrides](https://sprout.barrelstrengthdesign.com/docs/forms/notifications.html) in our docs.

You can copy the default Email Template as a starting point and the line that you'll want to update is `{% for field in fields if not field.isPlainInput() %}` which you can see [here](https://github.com/barrelstrength/craft-sprout-forms/blob/v3.0.0-beta.44/src/templates/_integrations/sproutemail/emailtemplates/basic/email.twig).

You can remove the `if not field.isPlainInput()` condition in that for loop to display all fields in your email. And conditionally hide or handle other fields uniquely in your templates by targeting them by their unique folder name: `field.getFieldInputFolder()`.


---

