Skip to content

Sliders defined on server side are not storing data #203

@saudiwin

Description

@saudiwin

Bug description

I believe this is related to #201 . It looks like when a slider question is defined on the server side, the values are not captured in the data. I tested this with the question_types template in the template repo -- i.e. I added the following server-generated question to the survey.qmd:

sd_output("slider1",type="question")

where it was defined in the server side as:

sd_question(
        id    = 'slider1',
        type  = 'slider',
        label = "Where do you want to go to?",
        option = c(
            'Take me to the page on Question Types (the next page)' = 'question_types',
            'Take me to the page on Question Formatting' = 'question_formatting',
            'Skip to the end' = 'end'
        )
    )

when I take the survey and then inspect the results, slider1 is always set to the default value (first value).

this is a fairly important breaking change, would love any help in diagnosing & fixing it.

I tested it with the version available on CRAN.

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Your environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions