Forum

Thread tagged as: Question, Addons, Forms

Using Page Info in Perch Forms Email

Hi

Quick question.

Viewing the Perch Form submissions in admin it also shows the page title and URL that the form is on.

Is there a way in include this in the email response that goes to the client?

Many thanks

Glen Piggott

Glen Piggott 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't think there is by the look of it.

Shame

Is there a way of identifying what page the submitted form has come from?

Maybe via a hidden field in the form template which can then be included in the response box in the Form app?

The hidden field value would need to be dynamically created, so may be echo's the page title or URL?

Glen

Simon Clay

Simon Clay 127 points

You can do it like this:

In your form page:

<?php 
   PerchSystem::set_var('page_title', perch_pages_title(true));
  perch_form('contact_form.html'); 
?>

In your form template add:

<perch:input type="hidden" id="page" label="Page" value="<perch:forms id="page_title" />" />

Nice - thank you Simon