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..3 Replies
I already tried using
->readOnly()
but all it does is throw error when used for any field type other than TextInput
.Solution
disabled()
?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 π