Type of Contact Checkboxes behave like Radio Buttons - Create new Contact Form
Bug Description
When creating a new contact, you can select the "Type of contact" via checkboxes.
Currently the checkboxes behave like radio buttons as in they only allow the user to select one value at a time and remove any former selection when a new one is checked.
Reproduction Steps
- Log in as National User
- Open any case (Diseases does not matter)
- Navigate to "Contacts" tab
- Click on "New Contact"
- Select values in the checkboxes for "Type of Contact"
Expected Behavior
The checkboxes need to allow for multiple values to be selected at the same time
Affected Area(s)
Web app
SORMAS Version
1.103
Android version/Browser
Firefox 145.0
User Role(s)
National User
Server URL
qa.sormas.dev
Additional Information
No response
@obinna-h-n please find out first if this was implemented this way on purpose by request from somebody. We are not sure if this was a request.
this component was designed on purpose this way. internally its an optiongroup (like the component used for case-classification), but because the length of the captions would make it wrap in a not user friendly way, this layout was made its default
Ok thanks.
Can we make it so that it still allows for multiple selections or is this impossible because it is considered an optiongroup for layout reasons?
Because there are use cases where more than one selection needs to be made here.