Skip to content

Add hideIf() feature #6922

@ucscode

Description

@ucscode

Short description of what this feature will allow to do:
Rather than hide a field based on a page, user can create a custom way to determine whether the field should be hidden or not!

Example of how to use this feature

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions