Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > Control object > Methods

JavaScript API: Control object > isReadonly()

Scroll Prev Next More

 

Gets the readonly status of the control.

Syntax

var readonly = ctrl.isReadonly();

Arguments

No arguments.

Return value

True if the control is readonly.

 

False if the control is writable.

Example

Check if the control is readonly using the JavaScript OnLoad event:

 

var ctrl = Runner.getControl(pageid, 'Make');
var readonly = ctrl.isReadonly();

Remarks

Readonly controls are submitted with the form and saved in the database. Readonly controls are filled by the Autofill feature. You can apply default values to Readonly controls.

See also:

JavaScript API: Control object > getControl()

JavaScript API: Control object > makeReadonly()

JavaScript API: Control object > makeReadWrite()

JavaScript API: Control object > reset()

JavaScript API: Control object > getValue()

Events: JavaScript OnLoad

JavaScript API: Control object

JavaScript API