F
Filament2mo ago
Bruno

Create and Edit Users Custom input

In the createUsers form, the password field is mandatory, I want the mandatory field to disappear in editUsers.
4 Replies
awcodes
awcodes2mo ago
->hiddenOn(‘edit’)
Bruno
Bruno2mo ago
I want the ->required() in the password inputs to not appear when editing. With ->hiddenOn() the input password disappears too, and I don't want that to happen]
LeandroFerreira
LeandroFerreira2mo ago
->required(fn (string $operation): bool => $operation === 'create')
Bruno
Bruno2mo ago
thanks ❤️
Want results from more Discord servers?
Add your server