Hello, I have the following bit of php code:
When I debug, the return and var are both set to the correct amount, like 12.98, but the field its supposed to go to appears empty still.
I have a 'total' field reloaded on a "price" event upon choosing a reservation time. The total field has value of {var:php15} which happens to be php code.
Any ideas?
$res_amount =& $form->data['res_amount'];
$time_res =& $form->data['time_amount'];
$total_price = 0;
$total_price = $res_amount + $time_res;
return $total_price;
When I debug, the return and var are both set to the correct amount, like 12.98, but the field its supposed to go to appears empty still.
I have a 'total' field reloaded on a "price" event upon choosing a reservation time. The total field has value of {var:php15} which happens to be php code.
Any ideas?
Hi Roaf,
The PHP action should be ABOVE the "Display section" action, is it ?
Best regards
The PHP action should be ABOVE the "Display section" action, is it ?
Best regards
This topic is locked and no more replies can be posted.