SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

Type of Contact Checkboxes behave like Radio Buttons - Create new Contact Form

Open SORMAS-JanBoehme opened this issue 3 months ago • 3 comments

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

  1. Log in as National User
  2. Open any case (Diseases does not matter)
  3. Navigate to "Contacts" tab
  4. Click on "New Contact"
  5. 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

SORMAS-JanBoehme avatar Nov 19 '25 11:11 SORMAS-JanBoehme

@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.

SORMAS-JanBoehme avatar Nov 19 '25 16:11 SORMAS-JanBoehme

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

obinna-h-n avatar Nov 24 '25 16:11 obinna-h-n

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.

SORMAS-JanBoehme avatar Nov 24 '25 17:11 SORMAS-JanBoehme