Answers.Body: <p>This is now possible with Sprout Forms 2.0 and Sprout Fields 1.0 Hidden or Invisible Field.</p>
  
  <p>You'll need to make your entry available to the Hidden of Invisible field using the <code>addFieldVariables</code> tag, and then in your field settings you can reference the Entry ID using single curly braces: <code>{entry.id}</code></p>
  
  <pre><code>{# Make the Entry available to your Hidden or Invisible field settings #}
  {% do craft.sproutForms.addFieldVariables({ entry: entry }) %}
  
  {# Output your form as normal #}
  {{ craft.sproutForms.displayForm('contact') }}
  </code></pre>
  
  <p>See <a href="http://sprout.barrelstrengthdesign.com/craft-plugins/fields/docs/overview/hidden-field#setting-a-dynamic-value-outside-the-global-scope" rel="nofollow">Setting a dynamic value (outside the global scope)</a>.</p>
  
  <hr>
  
  <p>Legacy Answer (pre Sprout Forms 2.0)</p>
  
  <p>When a form is submitted, the form notification has access to the variables in the <code>SproutForms_EntryModel</code> which include all the custom fields submitted with the form and anything in the global scope such as <code>{{ currentUser.email }}</code>.</p>
  
  <p>To make the Subject Line of the page that the form was submitted from available to your notification, you will need to make it a field on your form.</p>
  
  <p>This may be a little tricky to do with dynamic forms right now, but we are working on a way to make this easier in the future using a Hidden Field field type.</p>
  
  <p>A couple approaches to consider right now:</p>
  
  <ul>
  <li>Write a Hidden Field custom field type that behaves like you need it to</li>
  <li>Build your form with custom HTML and populate a hidden field on your form with the <code>{{ entry.title }}</code> value.</li>
  <li>Create a "Page Title" Plain Text field on your form, style it to <code>display:none</code> so the user never sees the field there, and populate the field with the entry title using javascript.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-26T16:29:00.053Z
Answers.LastActivityDate: 2015-10-20T20:00:41.480Z
Answers.LastEditDate: 2015-10-20T20:00:41.480Z
Answers.UserDisplayName: Ben Parizek
Body: <p>I am new to this so, excuse the lack of proper terminology. But I am using the Sprout Forms plugin (v1.1.0) on a site we designed for a real estate client. What I am hoping is that a visitor could fill out a form, and then the notification email would include the page title {{entry.title}} of the page which the form was filled out on. Otherwise would I need to create a unique form for every page in a craft "channel?" The site url is <a href="http://sivelluxury.com" rel="nofollow">http://sivelluxury.com</a>...</p>
  
  <p>I've currently got this in the subject line of the notification pane for that contact form - {fullName} Submitted a contact form on {{entry}} was filled on {{ siteName }} {dateCreated|date('Y-m-d')}</p>
  
  <p>Anyone who can help me?</p>
  
Tags: <plugin-sproutforms>
Title: Output entry title in subject line of notification when sprout form is submitted
ThreadText: # Output entry title in subject line of notification when sprout form is submitted
  
  (Asked by: username_0 on 2015-09-25)
  
  I am new to this so, excuse the lack of proper terminology. But I am using the Sprout Forms plugin (v1.1.0) on a site we designed for a real estate client. What I am hoping is that a visitor could fill out a form, and then the notification email would include the page title {{entry.title}} of the page which the form was filled out on. Otherwise would I need to create a unique form for every page in a craft "channel?" The site url is <http://sivelluxury.com>...
  
  I've currently got this in the subject line of the notification pane for that contact form - {fullName} Submitted a contact form on {{entry}} was filled on {{ siteName }} {dateCreated|date('Y-m-d')}
  
  Anyone who can help me?
  
  **Tags:** plugin-sproutforms
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-09-26. Score: 1
  
  This is now possible with Sprout Forms 2.0 and Sprout Fields 1.0 Hidden or Invisible Field.
  
  You'll need to make your entry available to the Hidden of Invisible field using the `addFieldVariables` tag, and then in your field settings you can reference the Entry ID using single curly braces: `{entry.id}`
  
  ```
  {# Make the Entry available to your Hidden or Invisible field settings #}
  {% do craft.sproutForms.addFieldVariables({ entry: entry }) %}
  
  {# Output your form as normal #}
  {{ craft.sproutForms.displayForm('contact') }}
  
  ```
  
  See [Setting a dynamic value (outside the global scope)](http://sprout.barrelstrengthdesign.com/craft-plugins/fields/docs/overview/hidden-field#setting-a-dynamic-value-outside-the-global-scope).
  
  ---
  
  Legacy Answer (pre Sprout Forms 2.0)
  
  When a form is submitted, the form notification has access to the variables in the `SproutForms_EntryModel` which include all the custom fields submitted with the form and anything in the global scope such as `{{ currentUser.email }}`.
  
  To make the Subject Line of the page that the form was submitted from available to your notification, you will need to make it a field on your form.
  
  This may be a little tricky to do with dynamic forms right now, but we are working on a way to make this easier in the future using a Hidden Field field type.
  
  A couple approaches to consider right now:
  
  * Write a Hidden Field custom field type that behaves like you need it to
  * Build your form with custom HTML and populate a hidden field on your form with the `{{ entry.title }}` value.
  * Create a "Page Title" Plain Text field on your form, style it to `display:none` so the user never sees the field there, and populate the field with the entry title using javascript.
  
  
  ---
  
  