lookit / ember-lookit-frameplayer

Ember app with experiment frames and a frame player to run browser-based experiments
MIT License
5 stars 19 forks source link

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

Open becky-gilbert opened 8 months ago

becky-gilbert commented 8 months ago

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