slider question type #166
Replies: 2 comments 2 replies
-
I haven't tested this myself yet, but I think you are correct. The example documentation on this shows the labels in the "normal" way that is consistent with the other question types, but the screenshot of the slider is actually displaying the values, not the labels. So I do think we got this reversed somehow. @pingfan-hu can you update this at some point on the branch we're working on? That will get it fixed in the next version. |
Beta Was this translation helpful? Give feedback.
-
Hi @jtkulas ! I've made the slider working properly in our developing branch, so you'll need to wait until we merge the branch. Sorry for the inconvenience. Below is how my solution looks: sd_question(
type = 'slider',
id = 'climate_care',
label = "To what extent do you believe human-caused climate change is real?",
option = c(
"Don't Believe",
"Somewhat Believe",
"Neutral",
"Believe",
"Strongly Believe"
)
) As you can see I don't use pairing of names and values, but there is only a single value for each option (which should be considered as "name"). Then in the data sheet, they will be converted to snake case. For example, you'll see " The reason is that the I'll notify you once we have the new version merged so that you can try it out. |
Beta Was this translation helpful? Give feedback.
-
Description
I haven't played with all question types yet, but the syntax for item response (displayed and recorded) appears reversed for
slider
question types, at least relative to themc
family of question types.With
mc
questions, the syntax with surveydown 0.4.0 is:option = c(
"display" = "data base value"
)
Slider questions appear to be:
option = c(
"data base value" = "display"
)
Feature request is a transposition of display/dbvalue for the
slider
type such that it's consistent withmc
questionsBeta Was this translation helpful? Give feedback.
All reactions