F
Filamentβ€’3mo 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
Vickydevβ€’3mo 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β€’3mo ago
disabled() ?
Vickydev
Vickydevβ€’3mo 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 πŸ‘