Closed denniskigen closed 4 months ago
Size Change: +26.6 kB (+1%)
Total Size: 3.17 MB
Filename | Size | Change | |
---|---|---|---|
dist/729.js |
0 B | -30.1 kB (removed) | π |
dist/800.js |
148 kB | +25.2 kB (+21%) | π¨ |
dist/969.js |
31.2 kB | +31.2 kB (new file) | π |
Thanks!
Requirements
Summary
This PR enhances the add question modal in the interactive builder by introducing granular handling of question types. Depending on the selected question type, the rendering types dropdown will display only the applicable options to ensure a consistent and logical user experience. The specific changes are:
For the
control
question type, the rendering types dropdown showstext
as the only available option since control fields are of type text.For the
encounterDatetime
question type, the rendering types dropdown showsdate
. Additionally, a radio button group allows selecting a standalone calendar, a standalone timer, or a combined calendar and timer in the date picker.For the
encounterLocation
question type, the rendering types dropdown showsui-select-extended
since these fields are wired up to the location data source.For the
encounterProvider
question type, the rendering types dropdown showsui-select-extended
since these fields are wired up to the provider data source.For the
obsGroup
ortestOrder
question types, the rendering types dropdown listsgroup
andrepeating
as the available options.For the
personAttribute
question type, the rendering types dropdown listsselect
,text
, andui-select-extended
as the available options.personAttribute
fields are backed by a person attribute type. So we show a ComboBox that allows users to search through the person attribute types configured in the system and select a backing person attribute type. A future iteration will add a dropdown for selecting the answers to display as choices for person attribute types linked to concepts.For the
obs
question type, we show all the available rendering types in the dropdown.This change ensures that users can only select valid rendering types for each question type, reducing confusion and potential errors.
Screenshots
https://github.com/openmrs/openmrs-esm-form-builder/assets/8509731/27a98f93-8a5b-4c65-8109-8c19a830e2da
Related Issue
Other