Hi Nekojira
Thanks for getting back to me so quickly. I am still struggling to adapt the code (its totally down to me not knowing php so appreciate any help I can get!).
I am trying to add the code on to my themes functions.php to use with a dynamically populated Gravity form field. The code I need for this is
add_filter(‘gform_field_value_your_parameter’, ‘my_custom_population_function’);
function my_custom_population_function($value){
return ‘HIDDEN FIELD VALUE’;
}
The person who is filling in the form is logged in and has the user currency field stored on their WP profile. So in the formula above I need to calculate the USD conversion rate and then feed this through to my hidden field.
Are you able to help? Every time I try I get an internal server error
Thanks
Jenefer