Is there a way to 'lock' an entry from being edited based on its current 'status' field?

Hello everyone. I know I can simply add a ->disabled on each field like this -
TextInput::make('title')
->disabled(fn (?Brief $record): bool => $record?->status === BriefStatusEnum::Processing->value)
TextInput::make('title')
->disabled(fn (?Brief $record): bool => $record?->status === BriefStatusEnum::Processing->value)
But, since the forms are big, i was wondering if there's a filament way to disable the whole form while the entry is held in certain status (Processing in this case..)? Thanks in advance.
Solution:
$form->disabled() ?...
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira8mo ago
$form->disabled() ?
prowler
prowlerOP8mo ago
hah, simple as that. thanks
Want results from more Discord servers?
Add your server