Hi, I am trying to do a calculation using other fields as parameters.
I need FLOOR. So I can't use the simple BEDMAS formulas allowed in GF.
I found several references to using hooks and JS to accomplish this, like this one:
http://www.gravityhelp.com/forums/topic/calculation-issue-1#post-144801
However, I am coming up short on solving the problem. Currently, I am using a *Product Field* and the gform_field_value_{parameter_name}
hook. I can change the price to something static but can't seem to access any other fields using rgpost
or rgget
.
I can use rggpost
during gform_pre_render
to get these values but not in gform_field_value_{parameter_name}
. Are we not meant to be able to obtain form information from this hook?
That seems weird.
I looked in forms_model.php
and in the function get_parameter_value
, they are using rgget
to obtain the value to be filtered. And in the function that calls that, get_input_value
, they are using rgpost
to obtain values by the standard form input_{field_ID}
So it works before the filter gets called but not during?