ReproNim / reproschema-py

Apache License 2.0
2 stars 8 forks source link

change options for slider #79

Open yibeichan opened 1 day ago

yibeichan commented 1 day ago

referring to slack discussion:

It's more so that the response options don't reflect what the actual values can be for sliders. According to the image, the only possible answers for that question are "MI", "MO" and "SE" where in redcap it sores a integer from 1 -100 image image the user will get a slider that has labels. but when we record it, its stores it as an integer should choices be present for questions like this since there isn't technically any choices

I tested with demo-protocol and found that even if min, max, marks were used in vue, our reproschema-ui only recognizes choices so I hardcoded a choice option as the following

choices = [
                    {"name": {"en": " "}, "value": i} for i in range(101)
                ]

I experimented with minValue and maxValue, not used by slider in our UI