[Resolved] Passing parameters between toolset and gravity forms
This thread is resolved. Here is a description of the problem and solution.
Problem:
A Gravity Form is inserted in the template for some post type which has a custom field, and the client wants to dynamically populate one of the form fields with the value from the custom field.
Tell us what you are trying to do?
I have a range of products, each one displaying on a content template when selected... I have a gravity form at the bottom where the user adds their email address so we can send them more info on the product, I need the form to return this field [types field='q1'][/types] so I know which product the user wants information on.
Is there any documentation that you are following?
<div class="prodQ">
<ul class="curve">
<li><span>What is it?</span><span>[types field='q1'][/types]</span></li>
<li><span>Who Is It For?</span><span>[types field='q2'][/types]</span></li>
<li><span>Why Do You Need It?</span><span>[types field='q3'][/types]</span></li>
<li><span>Where Does It Fit In?</span><span>[types field='q4'][/types]</span></li>
<li><span>When Do You Need It?</span><span>[types field='q5'][/types]</span></li>
</ul>
</div>
<div class="prodQEmail">Click Here For More Info</div>
<div class="prodForm">
[gravityform id="15" title="false" description="true"]
</div>
</div>
Except, you need to change 'your_parameter' to the Gravity Forms field you want to populate with the value of q1, as described in the GF documentation.