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