Silders with Calculated Result: How to get each selected option in a slider?

  • b. simon
    Asked on February 15, 2017 at 6:18 PM
    I 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.

    Thanks.

  • Kevin Support Team Lead
    Replied on February 15, 2017 at 6:38 PM

    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: 

    Silders with Calculated Result: How to get each selected option in a slider? Image 1 Screenshot 70

    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: 

    Silders with Calculated Result: How to get each selected option in a slider? Image 2 Screenshot 81

    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: 

    Silders with Calculated Result: How to get each selected option in a slider? Image 3 Screenshot 92

    Silders with Calculated Result: How to get each selected option in a slider? Image 4 Screenshot 103

    The condition used should be the update/calculate field: 

    Silders with Calculated Result: How to get each selected option in a slider? Image 5 Screenshot 114

    Here's a screen-cast about how it should work: 

    Silders with Calculated Result: How to get each selected option in a slider? Image 6 Screenshot 125

    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.