<p>There are a few different ways of doing this in Freeform (not familiar with Formie yet, sorry), but perhaps the most robust is to do it via your templates:</p>
<ol>
<li>Add a hidden field to your form in the form editor in the control panel.</li>
<li>Populate that field's value via the <code>overrideValues</code> parameter of the <code>form</code> method in your template that displays the form. Specifically for your use case it'd look something like this</li>
</ol>
<pre class="lang-twig prettyprint-override"><code>{% set form = craft.freeform.form('yourFormHandle', {
    overrideValues: {
        yourHiddenFieldHandle: entry.title ?? 'None'
    }
}) %}
</code></pre>
<p>Since it's just an ordinary field, you can then output its value the same way as a plain text field for the purposes of your email notifications.</p>

CC BY-SA 4.0
2024-05-09T13:28:29.107Z
2024-05-09T13:28:29.107Z
James Smith
<p>I have not decided on which particular plugin to use yet, but i've been all over the docs for both Freeform and Formie trying to find a way to 'capture' the current page title and include it in both the form submission AND the email notifications.  If this is at all possible, could someone please tell me how it's done (step-by-step)?</p>
<p>Thanks</p>

<plugin-freeform><plugin-formie>
Formie or Freeform include current page title in submissions and email notifications
# Formie or Freeform include current page title in submissions and email notifications

(Asked by: username_0 on 2024-05-03)

I have not decided on which particular plugin to use yet, but i've been all over the docs for both Freeform and Formie trying to find a way to 'capture' the current page title and include it in both the form submission AND the email notifications. If this is at all possible, could someone please tell me how it's done (step-by-step)?

Thanks

**Tags:** plugin-freeform, plugin-formie


---

## 1 answers

### Answer by username_1 on 2024-05-09. Score: 1

There are a few different ways of doing this in Freeform (not familiar with Formie yet, sorry), but perhaps the most robust is to do it via your templates:

Add a hidden field to your form in the form editor in the control panel.
Populate that field's value via the overrideValues parameter of the form method in your template that displays the form. Specifically for your use case it'd look something like this

{% set form = craft.freeform.form('yourFormHandle', {
    overrideValues: {
        yourHiddenFieldHandle: entry.title ?? 'None'
    }
}) %}

Since it's just an ordinary field, you can then output its value the same way as a plain text field for the purposes of your email notifications.


---

