I want to assign a different ebook title to different post pages. I am trying to set $field_data when I call the form, but it is not getting set. I have tried calling the form two different ways...
First by assigning array values to $field_values when I call the form.
gravity_form(1, false, true, $field_values = array( "ebook-title" => $ebooktitle, "Phone" => "(907)555-1234" ), '', false)
Second by assigning the array to a variable then using the variable to set $field_values.
$tpd_field_values_set = array( "ebook-title" => $ebooktitle, "Phone" => "(907)555-1234" );
gravity_form(1, false, true, $field_values = $tpd_field_values_set, '', false);
The form shows up on the page but none of the data is there. I selected "Allow field to be populated dynamically". The variable $ebooktitle is set.
How do I use data from my post to populate on form when the post loads.
Thanks for your help
Trevor