F
Filamentβ€’3d ago
pratik

Any way to make checkbox readonly but not disabled ?

Checkbox::make('done')
->inlineLabel();
Checkbox::make('done')
->inlineLabel();
Solution:
I think you want it disabled but that makes it an ignored field, right? as a solution use ->dehydrated() as in the docs: Toggle::make('is_admin') ->disabled()...
Jump to solution
3 Replies
SuperUserDo
SuperUserDoβ€’3d ago
Have you tried to chain ->disabled() ?
Solution
Mohamed Ayaou
Mohamed Ayaouβ€’2d ago
I think you want it disabled but that makes it an ignored field, right? as a solution use ->dehydrated() as in the docs: Toggle::make('is_admin') ->disabled() ->dehydrated()
pratik
pratikOPβ€’2d ago
Thank you, I missed dehydrated. 😁
Want results from more Discord servers?
Add your server