Skip to content

Commit

Permalink
minor #5748 [DOC] remove IdField::new('id', 'Id')->setDisabled() befo…
Browse files Browse the repository at this point in the history
…re FormField… (flegars)

This PR was merged into the 4.x branch.

Discussion
----------

[DOC] remove IdField::new('id', 'Id')->setDisabled() before FormField…

This little change is related to #5722.

Just removing the `IdField::new('id')->hideOnForm()` before `FormField::addPanel('User Details')` to avoid errors.

Commits
-------

319ec59 [DOC] remove IdField::new('id', 'Id')->setDisabled() before FormField::AddPanel()
  • Loading branch information
javiereguiluz committed May 16, 2023
2 parents ce6722a + 319ec59 commit 8f1abc3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions doc/fields.rst
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@ the "panels" created with the special ``FormField`` object::
public function configureFields(string $pageName): iterable
{
return [
IdField::new('id')->hideOnForm(),

// panels usually display only a title
FormField::addPanel('User Details'),
TextField::new('firstName'),
Expand Down

0 comments on commit 8f1abc3

Please sign in to comment.