Skip to content

Feat/field visibility#71

Open
conradbekondo wants to merge 5 commits into
dlsc-software-consulting-gmbh:master-11from
conradbekondo:feat/field_visibility
Open

Feat/field visibility#71
conradbekondo wants to merge 5 commits into
dlsc-software-consulting-gmbh:master-11from
conradbekondo:feat/field_visibility

Conversation

@conradbekondo

@conradbekondo conradbekondo commented Jul 21, 2025

Copy link
Copy Markdown

In this pull request, I added a BooleanProperty to the Element class which controls a field's visibility when rendered.

When invisible, the field is always valid, and never gets recorded as changed (i.e changed property is always false)

This feature is useful in cases where fields need to be toggled in or out of the form based on an ObservableBooleanValue.

- Introduced a BooleanProperty `visible` to the Element class to manage the visibility of form elements.
- Updated the Field class to respect the visibility state during validation.
- Modified MultiSelectionField and SingleSelectionField to skip validation if not visible.
- Enhanced GroupRendererBase to skip rendering of invisible elements.
- Added tests to verify behavior of fields when visible and invisible.
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.

1 participant