Passing a value from the page into the contact form
-
Hi, I’ve got the following problem. I have a list of projects on my page (https://v2.earth-neighbours.com/connect/projects/). Each project has the same ‘Project Enquiry Form’ embedded into it at the bottom via the contact form 7 shortcode:
[contact-form-7 id=”338″ title=”Project Enquiry Form”]
And what I need is that each form submits to a different sender (as well as cc me) relevant to the project.
Is there no easy way to do this? In the above shortcode for example where it says title=”Project Enquiry Form”, am I not able to use the title value somewhere in the form?
Anyway …
I’ve installed Contact Form 7 Dynamic Text Extension but I’m not sure I understand it right as to how I pass page values down into the contact form. I’ve tried with CF7_get_custom_field so I’ve added this into the Project Enquiry Form:
[dynamichidden dynamichidden-244 “CF7_get_custom_field project_email=’project_email'”]
now I thought that maybe I could pass the value down via the contact form 7 shortcode, in the same way that I explained with respect to the ‘title’ value, like this:
[contact-form-7 id=”338″ title=”Project Enquiry Form” project_email=”[email protected]”]
I guess that this is the simplest way to just pass the paramater straight down into the contact form via the contact-form-7 shortcode, but this doesn’t seem to work and I’m not really sure how you’re meant to do it. Can anyone help me understand better how I can achieve this?
Many thanks in advance,
M
- The topic ‘Passing a value from the page into the contact form’ is closed to new replies.