We want the address fields to be searchable with typing, but Carbon does not support auto-complete behaviors in a dropdown field UI. For now @sinte has started an Autocomplete Component (component class) to handle this. But we wanted to see what others have done.
@dkibet I believe you implemented this for Ampath Forms. Would that approach extend to a component/widget, or is it limited to in-form display?
Hi @grace and @sinte , are you maybe looking for ComboBox? This would allow users to type to search for a member of a list. For address this could be used to select country, state, etc.
@sinte I see. Would it work to use ComboBox as a base component and refresh the options with api results?
The article you reference mentions how this is working already in MaterialUI. Looking at MUI now it seems like they also are using ComboBox for their Autocomplete Search. I think same behavior can be achieved with Carbon.
Woohooooo!! Nice job @sinte!!! Can you share a link to the repo or pr for this? Or is there anything you need from the OpenMRS GitHub org to get you a community repo for this?
Many folks around the world are going to be excited to use this
Update: A large org in Rwanda is very very interested in using this feature as well So @zacbutko maybe you and I can unblock Sinte promptly - could you create an openmrs/esm-… repo for him for this?
@samuel34 & @pirupius can you please confirm if you can create the slot in the esm-registration-app for Sinte? Otherwise please ping @zacbutko ASAP so we can keep this moving
@zacbutko the work done on the address hierarchy widget has reached a point where we need to add it to the registration page but there are already existing address fields on that page so adding a slot will just cause duplication. Should we consider removing the current address fields completely in favour of the new widget?