That's it. Keep in mind you will need to change the variable names in the function for each question so the values are returned correctly into your sawtooth database. Big thanks to João Fernandes for all of your help.
Sorry for the late reply, Nate. Yup, jQuery comes bundled with SSI Web 8.0, so no need to import it. 7.0.26 was the last version to incorporate MooTools instead of jQuery, what explains the need of the imports.
Hummm, looking at your code, I might be wrong but I think you're doing the same thing I did: "PerguntasVAS1_v1" is a hidden variable that is defined in my question, and stores the slider value. As a hidden variable, you can get its value to be exported into your dataset. Or maybe I got a little bit confused! :]
Hey João! As the function was written before it did not store the value of the answer in the SQL database therefore it did not return a value when the answer was submitted (maybe this is an 8.0 thing?). What I did was name my question "amount_a" and used that text within the function as well as the HTML input tag. This solved the issue of returning the value to the database.
I tried to organize and post your modified finalized code on the forum so that others could easily understand how to accomplish getting the slider on their page without having to read through an entire thread. That said, I still haven't figured out how to get these sliders into a grid so I'm really only half way there.
Maybe I forgot to mention something on the other thread, but in my case the hidden variable defined in the free format question actually stored the slider's value into the dataset. Nevertheless, you got it to work, that's what matters.
In what concerns to grids, I've never used them, so good luck!
Your comment on this answer:
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
[captcha placeholder]
To avoid this verification in future, please log in or register.