Skip to content

Conversation

@pbaumes
Copy link

@pbaumes pbaumes commented Nov 6, 2025

This version adds support for the ‘hideIf()’ function for form fields.

e.g.

yield TextField::new('property')
  ->hideIf(function($entity) {
     return !$entity->hasRequiredProperty();
  });
;

or

yield TextField::new('property')
  ->hideIf(!$entity->isPublished());
;

Fixes: #6922

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.

Add hideIf() feature

1 participant