Method of FormInputElement
New in package 162Syntax
element.readOnly = true | false
Description
If true, user cannot modify content of the control.
- Setting the property to true always succeeds.
- If there is no object in the form or if the window doesn't allow any editing (e.g. History Window), then:
- Property value is always true.
- Setting the property to false has no effect (no exceptions are thrown and value remains false).
- If there is an object in the form and the window allows editing then:
- Property value is determined by design-time Editability property of the control.
- Setting the property to false succeeds only if Editability property of the control allows editing in the current Form.mode, otherwise an exception is thrown.