Hi, I just upgraded my license to developer and am finding more and more great uses for Gravity Forms every day. Thanks for doing great work :)
I'm having some difficulty using a PHP variable to dynamically populate a field. When I use this code:
add_filter("gform_field_value_jobname", "jobname");
function jobname($value){
return "test";
}
It dynamically populates the field perfectly. But when I try to dynamically populate with a variable:
$name = $this->get_field('name');
echo $name;
add_filter("gform_field_value_jobname", "jobname");
function jobname($value){
return $name;
}
It doesn't work. I know $value is set, I just can't seem to figure out how to get $value dynamically populated!
Any thoughts?