0 votes
in SoSci Survey (English) by s309575 (155 points)
edited by s309575

My question is about age - I want participants to use a slider to indicate an age between 0 and 100. However, the slider seems built for percentages. How can I make it so that the chosen value that is displayed at the top is not a percentage?

by s109993 (12.4k points)
Just out of curiosity: Why do you not use a text field to ask for the age of your participants? Regarding you question: I can not find any percentage indicator- could you maybe post a screenshot what bothers you?
by s309575 (155 points)
I chose a slider because I wanted to constrain respondents' answers so that they enter only numeric values between 0 and 100. Attached is a screenshot!

1 Answer

0 votes
by SoSci Survey (341k points)

You'll need a few lines of JavaScript, see Slider -> Display the Current Position.

This script, by and large, converts the actual numeric value into what the questionnaire should display.

by s309575 (155 points)
I'm unfortunately unable to figure out how to alter the examples on this page to accommodate numeric values. Even when I select the code designed for percentages, pasting that code into the Custom Code box turns the slider into a multiple choice question
by SoSci Survey (341k points)
Please post a pretest URL that will start at the page with the slider, so I can take a look at the situation.
by s309575 (155 points)
edited by s309575
by SoSci Survey (341k points)
This page does not yet contain your JavaScript code to modify the slider's output, right?
by s309575 (155 points)
No, I didn't see a code that would allow me to use whole numbers as anchors, so I did not alter any code yet.
by SoSci Survey (341k points)
Well, you'll have to add some code, so I can give you feedback on that. What about starting with the "Basis-Script" example?

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...