Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exp-lookit-survey does not display dropdown multi-select/checkbox questions correctly #361

Open
becky-gilbert opened this issue Jan 30, 2024 · 0 comments
Labels

Comments

@becky-gilbert
Copy link
Contributor

TL;DR

Survey frame doesn't produce a dropdown menu with multi-select checkboxes, as shown in the documentation: http://www.alpacajs.org/docs/fields/select.html

Which frame or frames does it affect?

exp-lookit-survey

Example

Something like this should work, but doesn't. Instead it just displays all of the options at once (instead of as a dropdown) and there are no check boxes next to each option.

{
    "frames": {
        "study-survey": {
            "kind": "exp-lookit-survey",
            "formSchema": {
                "schema": {
                    "enum": [
                        "vanilla",
                        "chocolate",
                        "coffee",
                        "strawberry",
                        "mint"
                    ]
                },
                "options": {
                    "label": "Ice cream",
                    "helper": "What flavor of ice cream do you prefer?",
                    "multiple": true,
                    "type": "select",
                    "noneLabel": "Pick a flavor of ice cream!"
                }
            }
        }
    },
    "sequence": [
        "study-survey"
    ]
}

Result of the above code:

Screenshot 2024-01-29 at 4 49 49 PM

Expected result:

Screenshot 2024-01-29 at 4 49 29 PM

Screenshot 2024-01-29 at 4 49 21 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant