Hello,
I'm trying to use the function call -way to import a form into a Wordpress theme page. This works great with:
gravity_form(
3,
$display_title=false,
$display_description=true,
$display_inactive=false,
$ajax=true,
$field_values = array(
'namn'=>$namn,
'url'=>$url,
'vanlig_url'=>$vanlig_url,
'typ'=>$typ,
'registrering'=>$registrering,
'kategori'=>$kategori)
);
As you also can se I'm trying to add field values through the $field_values command. And here it's where I bump into problem.
Nothing want show up in the hidden fields which I added when creating the form. The hidden fields are set to the following:
"Allow field to be populated dynamically" is checked
"Parameter Name:" is set to the six seen above in the code
Label name is also set to the six seen above in the code
The parameters $namn, $url, $vanlig_url, $typ, $registrering, $kategori are all checked and the output the information I want in my hidden fields.
The source code which is being output looks like this:
<li id='field_3_3' class='gfield gform_hidden' >
<input name='input_3' id='input_3_3' type='hidden' class='gform_hidden' value='' />
<li id='field_3_4' class='gfield gform_hidden' >
<input name='input_4' id='input_3_4' type='hidden' class='gform_hidden' value='' />
<li id='field_3_5' class='gfield gform_hidden' >
<input name='input_5' id='input_3_5' type='hidden' class='gform_hidden' value='' />
<li id='field_3_6' class='gfield gform_hidden' >
<input name='input_6' id='input_3_6' type='hidden' class='gform_hidden' value='' />
<li id='field_3_7' class='gfield gform_hidden' >
<input name='input_7' id='input_3_7' type='hidden' class='gform_hidden' value='' />
<li id='field_3_8' class='gfield gform_hidden' >
<input name='input_8' id='input_3_8' type='hidden' class='gform_hidden' value='' />
What am I doing wrong? And how to solve it?