Q: Calculations and slider
Hi, I tried the demo and am impressed with how deeply developed this plugin is.
The most important thing I need to do is some calculations with the answers collected from mainly the sliders (and the number field). I need to capture the numbers assigned by the slider selections and then do some basic calculations with them.
For example:
Slider 1 position = 5/10
Slider 2 position = 7/19
Slider 3 position = 2/10
Then disaplay the average with a formula such as:
(Sliver 1 + Slier 2 + Slider 3)*10/3
Then, based on the results display a message with a long text message.
For example,
If Average = 40% - 60% display result A
If Average = 60% - 100% display result B.
Can then be accomplished?
Also, is this well documented?
Thank you!
Yes, the functionality you're asking about is absolutely possible with Bit Forms! You can achieve this using Conditional Logics and Calculations.
Here’s how to set it up:
For Calculating the Average
Go to Form Settings > Conditional Logics > Add Conditional Logic.
Set the Logic to:
Action Run When: Record Create/Edit
Action Effect: Always
Action Behavior: Always
-In the If condition:
Select your Slider Fields (e.g., Slider 1, Slider 2, Slider 3).
Set the Logic to: Change
-Then, for your Number Field:
Set the Value to Action.
Enter your math calculation (e.g., (Slider 1 + Slider 2 + Slider 3) / 3). Adjust this formula based on your specific needs, like multiplying by 10 if your slider values are percentages out of 10.
-For Showing Results (A, B, C Grades)
Create another Conditional Logic (similar to the previous one).
-In the If condition:
Select your Number Field (where the average is calculated).
Set the logic: Greater than or equal [value] AND Less than or equal [value] (e.g., Greater --than or equal 0 AND Less than or equal 60).
Then, in your Text Field, set the Action Value to A.
-Add an Else If condition:
Set the Number Field logic: Greater than [value] AND Less than or equal [value] (e.g., Greater than 60 AND Less than or equal 100).
-Then, set the Text Field to B.
You can continue adding Else If or an Else condition for C or other grades as needed.
For more detailed information on setting up conditional logics and calculations, please refer to our documentation:
https://bit-form.com/wp-docs/apply-conditional-logic-using-bitform

Verified purchaser
Thank you so much for your detailed answers. Just awesome! Just bought a code for now and may stack more later.