F
Filament3mo 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
awcodes3mo ago
->hiddenOn(‘edit’)
Bruno
BrunoOP3mo 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
LeandroFerreira3mo ago
->required(fn (string $operation): bool => $operation === 'create')
Bruno
BrunoOP3mo ago
thanks ❤️
Want results from more Discord servers?
Add your server