F
Filamentβ€’9mo ago
Vickydev

How to make RichEditor and ToggleInput fields ReadOnly ?

Hey y'all, As stated in Question title, how can I make RichEditor and ToggleInput fields ReadOnly inside Form/Schema, such that they still show the content fully with HTML rendered, but NOT ALLOW TO EDIT/MODIFY THE CONTENT IN ANY WAY ? Thanks..
Solution:
disabled() ?...
Jump to solution
3 Replies
Vickydev
VickydevOPβ€’9mo ago
I already tried using ->readOnly() but all it does is throw error when used for any field type other than TextInput.
Solution
LeandroFerreira
LeandroFerreiraβ€’9mo ago
disabled() ?
Vickydev
VickydevOPβ€’9mo ago
Umm, I am kinda wondering, if using that isn't gonna allow me to pass data or what ? But let me try it anyway, thanks for responding, will let you know in a while! @Leandro Ferreira It worked great, thanks a lot πŸ‘
Want results from more Discord servers?
Add your server