INT-NIT / DigLabTools

MIT License
2 stars 4 forks source link

Multiple choices when using checkbox type #61

Open killianrochet opened 1 year ago

killianrochet commented 1 year ago

We have seen that there is a problem when we use the checkbox format on Elab. The checkbox type does not allow multiple choices to be selected using the options attribute.

    "Subject behaviour (post-trial)": {
      "type": "checkbox",
      "value": "",
      "options": [
        "Agitated",
        "Resting",
        "Sleeping",
        "Sparse trials"
      ],
      "position": 21
    },

The idea would be to create several checkboxes for each choice in the list of options I think

JuliaSprenger commented 1 year ago

To be more precise: A checkbox field in ElabFTW does only permit a single checkbox, not multiple ones like in RedCap.

killianrochet commented 1 year ago

Update : Nicolas has allowed the addition of the multiselect which replaces the checkbox system that was on RedCap. The goal is to adapt this and make the necessary changes.

Issue : https://github.com/INT-NIT/DigLabTools/compare/main...killianrochet:ELAB/MultipleSelectAdd?expand=1

JuliaSprenger commented 1 year ago

By merging #63 it is possible to select multiple choices from a dropdown menu, however this is still not as user friendly as the multiple-checkbox implementation in RedCap. Let's keep this issue open and continue pushing Elab towards a more user-friendly implementation. @killianrochet Do you agree?