Skip to content

custom-fields: forward the field ID to React #3138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

palkerecsenyi
Copy link
Member

Closes inveniosoftware/react-invenio-forms#297

Releasing this PR before inveniosoftware/react-invenio-forms#298 should not cause any problems as existing React widgets will simply ignore the id prop.


Description

  • Added an injection of the field ID (e.g. cern:department) to the React UI widget chosen for the custom field via a new id prop.

  • This is consumed by the new function in overridable: Implement for custom fields react-invenio-forms#298 and used to allow developers to dynamically parametrize their own custom fields based on the form state.

  • This is not a breaking change and shouldn't affect any existing custom fields

* Added an injection of the field ID (e.g. `cern:department`) to the
React UI widget chosen for the custom field via a new `id` prop.

* This is consumed by the new function in
inveniosoftware/react-invenio-forms#298 and used
to allow developers to dynamically parametrize their own custom fields
based on the form state.

* This is not a breaking change and shouldn't affect any existing custom
fields
@palkerecsenyi palkerecsenyi force-pushed the forward-id-to-custom-fields branch from da31d13 to 82abd64 Compare July 25, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

custom fields: Add Overridable support
1 participant