Calculate Numeric Entities in WP Fluent Forms

First, we need to create a numeric input field, see this documentation and create some numeric input field.

3 numeric input field

Let’s assume we have two numeric data that needed to be calculated and show the resulted data in another field (Result). For this, we need to create 3 numeric fields like the above figure.

Now hover over the input field (The field where you want to show the result) and click the pencil icon[1], it will reveal a sidebar in the right side. Now click on the advanced option[2].

enable calculation

Now, from the Advanced Option, click on the Enable Calculation option. It will reveal an input box.

Enable calculation in Fluent Form.png

Now, click on the document icon[1], it will show all the available input field[2]. Select them, they will be added in the calculation box. Now add the numeric expression in between them (for example add a ‘+’ in between them).

Don’t put any space in between them, just put the expression.

Now save the form and preview, you will get the result after putting the values in Number one and Number two.

Supported symbols

+Addition Operator eg. 2+3 results 5
Subtraction Operator eg. 2-3 results -1
/Division operator eg 3/2 results 1.5
*Multiplication Operator eg. 2*3 results 6
ModModulus Operator eg. 3 Mod 2 results 1
(Opening Parenthesis
)Closing Parenthesis
SigmaSummation eg. Sigma(1,100,n) results 5050
PiProduct eg. Pi(1,10,n) results 3628800
nVariable for Summation or Product
piMath constant pi returns 3.14
eMath constant e returns 2.71
CCombination operator eg. 4C2 returns 6
PPermutation operator eg. 4P2 returns 12
!factorial operator eg. 4! returns 24
loglogarithmic function with base 10 eg. log 1000 returns 3
lnnatural log function with base e eg. ln 2 returns .3010
powpower function with two operator pow(2,3) returns 8
^power operator eg. 2^3 returns 8
rootunderroot function root 4 returns 2
sinSine function
cosCosine function
tanTangent function
asinInverse Sine function
acosInverse Cosine funtion
atanInverse Tangent funtion
sinhHyperbolic Sine function
coshHyperbolic Cosine function
tanhHyperbolic Tangent function
asinhInverse Hyperbolic Sine function
acoshInverse Hyperbolic Cosine function
atanhInverse Hyperbolic Tangent function
roundMake a number as decimal / integer.
Use case: round(3.235723663, 2) = 3.23
and round(3.235723663, 0) = 3
ceilUse case: ceil(3.235723663) = 4
floorUse case: floor(3.235723663) = 3
maxUse case: max(10, 15) = 15

Was this article helpful to you?

14 11

How can we help?

Please submit a support ticket if you have any question or pre-sale questions. Our Customer support engineers will answer your query as soon as possible

Open a support ticket