I’ve been looking at the documentation of the program and can not find the option to perform exponential operations.
Is there any way?, Maybe with a script?
Thanks,
I’ve been looking at the documentation of the program and can not find the option to perform exponential operations.
Is there any way?, Maybe with a script?
Thanks,
You must be logged in to post a comment.
Calculation field formulas don’t currently support exponents so you’re going to need to use the gform_calculation_result JavaScript hook along with JavaScript pow() and jQuery .val() to override the result of the formula.
If your calculation field id was 2 and you wanted to calculate the value entered in field 1 to the power of 3 your script could look like this