/
UXPROD-2491 - Users - Custom Fields: accordion display configuration

UXPROD-2491 - Users - Custom Fields: accordion display configuration

Submitted

Mar 3, 2025

Approved

 

Status

draft

Impact

low

Arch Ticket

https://folio-org.atlassian.net/browse/UXPROD-2491

Prod ticket

https://folio-org.atlassian.net/browse/ARCH-310

Context

Current situation or problem: Currently any created users custom fields will display in the custom field accordion which has a configurable title. However, it is currently not possible to set custom fields to display in other accordions on the user’s record. This feature would add a configuration option under Settings>Users>Custom Fields to set which accordion the custom will be displayed under.

Solution

The solution is aimed to provide a common mechanism for all modules that use folio-custom-fields library. For the implementation, the library should be extended to:

  • persist the sectionId field that will be exposed through related API’s and allow setting it to the specific accordion.

Besides changes in the library, it is required to adjust the ui-users module to be able to:

  • persist the configuration and related to the custom field

  • use the persisted configuration during the display of create/edit form

WBS

Backend:

  1. Add sectionID | varchar column to folio-custom-fields table. Possible values: customFields, editUserInfo, extendedInfo, contactInfo, etc. according to available sections in UI.

Frontend:

  1. On the configuration page for custom fields, add a dropdown with values from BE-1

  1. On the user edit/create form, after getting the custom fields configuration, check the sectionId field and place the custom fields element in the proper section

Related content