What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Silders with Calculated Result: How to get each selected option in a slider?Asked by b. simon on February 15, 2017 at 06:18 PMI am trying to capture each option points from the slider and output the results on the confirmation form, or pass the values to in a string to the booking system.
for example, if the customer selected house size 2001 - 2500, and frequency of weekly, for a total of $4
I want to be able to capture the values of 2001 - 2500 and weekly frequency and pass those states to a booking form to complete booking.
So, how do I figure out exactly which form parameters I need to pass. This slider with calculated result does not expose that information.
Any thoughts on this will be appreciated.
I have checked the widget and found that it does not allow to get the selected option (name in widget settings), it is only possible to get the total value in the slider.
However, I think there is a way to populate a text box with the selected option based on the result, for example, you could set a single slider to get each single value:
This will allow you to set conditions based on this result, then setting up a condition similar to this one you could populate the option's name in a text box:
Make sure also that you're adding the result as text, otherwise in text like 100-1500 the calculation would be performed.
To add the result as text by default, click on the options icon (while setting the condition) and go to the options tab, mark the add result as text by default option:
The condition used should be the update/calculate field:
Here's a screen-cast about how it should work:
Do note that doing this you will need to manually calculate the total in your form, this guide will help you with that: https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget
Here's also the link to my sample form: https://form.jotform.com/70417506197963
Feel free to clone it and inspect what I did: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL
Do note that you would also need to set up the needed conditions to populate the option's name to the text box, in my example the slider had 4 options then I needed to set up 4 conditions, one per specific value.
Hope this helps.