How to disable a field input?
How to disable a field input?

I need to edit items using Editor, and some fields need to be shown but not editable. How to do that? Thank you!
I need to edit items using Editor, and some fields need to be shown but not editable. How to do that? Thank you!
Answers
Either use
readonly
or if you need to enable and disable the field dynamically, usefield().enable()
/field().disable()
.Allan