setReadOnly

open fun setReadOnly(readOnly: Boolean)

Sets whether the user may change the value of this field. Changing the read-only state refreshes all form elements of this field and asynchronously notifies registered FormListeners.OnFormFieldUpdatedListeners on the main thread. Setting the current value again is a no-op.

Parameters

readOnly

true to prevent the user from changing the value of this field, false to allow it.