Please enable JavaScript to view this site.

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

JavaScript API: Control object > setDisabled()

Scroll Prev Next More

 

Makes the control disabled.

Syntax

ctrl.setDisabled();

Arguments

No arguments.

Return value

No return value.

Example

Make the control "disabled" using the JavaScript OnLoad event:

 

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

Remarks

Note: Disabled controls are NOT submitted with the form and are not saved in the database. Disabled controls will be filled by the Autofill feature. You can apply default values to Disabled controls.

See also:

JavaScript API: Control object > getControl()

JavaScript API: Control object > setEnabled()

JavaScript API: Control object > clear()

JavaScript API: Control object > hide()

JavaScript API: Control object > reset()

Events: JavaScript OnLoad

JavaScript API: Control object

JavaScript API