UI glitch in Questionnaire form
# support
s
I'm encountering an unexpected UI glitch when rendering a Questionnaire that uses the choice type with repeats: true and the drop-down item control for selecting multiple "Days of Week." šŸ› Problem Description The goal is to have a single input field where users can select multiple days of the week, displayed as "chips" inside the field. However, the rendered form (see attached screenshot) is incorrectly generating three separate, duplicate input fields for the "Days of Week" question, each pre-populated with "Sunday," "Monday," and "Tuesday" (presumably from a prior state/session, though not defined that way in the initial value). This is causing a major UI issue, making the form unusable for this field. šŸ“‹ Questionnaire Configuration Here is the relevant part of the Questionnaire structure: >
Copy code
{
>   linkId: 'days-of-week',
>   type: 'choice',
>   text: 'Days of Week',
>   required: true,
>   repeats: true, // <-- This is the multiple selection indicator
>   answerOption: [
>     // ... all days defined with system 'http://hl7.org/fhir/days-of-week'
>   ],
>   extension: [
>     {
>       url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
>       valueCodeableConcept: {
>         coding: [
>           {
>             system: 'http://hl7.org/fhir/questionnaire-item-control',
>             code: 'drop-down',
>             display: 'Drop down',
>           },
>         ],
>       },
>     },
>   ],
> }
ā“ Question Is this the correct way to configure a Medplum Questionnaire item for multi-select (chips/tags) functionality? If so, what might be causing the duplication of the input field instead of displaying a single input allowing multiple selections (chips)? Any guidance on how to correctly achieve the desired UI (single multi-select chip-based input) would be greatly appreciated! Thanks! https://cdn.discordapp.com/attachments/1438202062029717605/1438202062742622350/Screenshot_from_2025-11-12_21-40-49.png?ex=6916058c&is=6914b40c&hm=0e988f0dd8b66460b81f5251ef35287b004207995e4a65757553230ad4f50aa6&
52 Views