setReadOnly

fun setReadOnly(fieldName: String, value: Boolean)

Makes the field read-only, or gives it back to the reader.