Hello everyone
I'm new to GF and so far I've been really impressed by the wealth of information available on the support forum and in the documentation. The plugin is brilliant too.
How ever I've hit a brickwall and after 2 hours of reading I need help.
I have a heavily customised Wootheme [ Estate ] that's using a live feed of residential and commerical properties. On each property page that's a button that allows you to 'request a viewing' for one of these properties.
The theme comes with a 'contact-form' template that I started to hack. The out of the box contact form grabs the ID of the property from the querystring and populates an input field. However I need much more information than this so I bought GF.
What I'd like to do is embed a GF inside the property page - I understand how to do this.
The form will request fields such as name, email, telephone number etc from the person who's requesting the viewing.
How ever I'd like to populate several hidden fields with variables that contain the ID of the property, the address of the property and the location of the property and have those fields included in the email that I receive on submission of the form.
I've got some custom fields set up in the PHP page that displays the property and will have the embedded GF.
They're set up like this to use in the page
$property_feed_id = get_post_meta($post->ID,'feed_id',true);
and
$property_address = get_post_meta($post->ID,'address',true);
If the GF is embedded in the page that displays the property, is it not possible to populate some hidden fields with this variables using the GF interface. As that information is already available in the page?
I've tried clicking 'Allow field to be populated dynamically ' and then in the parameter box tried a combination of adding $property_address / $property_feed_id etc
Or am I approaching this totally wrong? Should I be trying to post all this information in the querystring and building a form to operate similar to the Woothemes contact form? Is that the most elegant way of doing it?
Ideally I wanted the form to be available in the property page itself. The software that provides the feed scrapes the inbox where the "request a viewing' submission lands and uses the ID of the property to generate a lead. Hence needing that information. I tried hacking the Woothemes Contact Form and it was turned out to be hassle. I hope GF hits the mark in what I'm trying to do.
Hope all this makes sense and someone can help or point me in the right direction.
Thanks in advance
Mark