I have tried to use this example (http://www.gravityhelp.com/forums/topic/mathematics-to-gravity-forms) and create a form that basically does a small calculation but cannot get it to work.
Here is my code
[php]
add_action("gform_post_submission_8", "calculate_savings", 10, 2);
function calculate_savings($entry, $form){
$savings = $entry['1'] - 100;
$_POST['input_2'] = $savings;
return $form;
}
POST['input_2'] is a hidden field in the form which I then insert in the confirmation message for the user to see.
$entry['1'] is basically a numeric field which I then use to calculate.
Any help would be appreciated
Thanks