Please enable JavaScript to view this site.

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

JavaScript API: Control object > hide()

Scroll Prev Next More

 

Hides the control.

Syntax

ctrl.hide();

Arguments

No arguments.

Return value

No return value.

Example

Hide the control (not the label) using the JavaScript OnLoad event:

 

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

 

If you need to hide the control and the label, use the pageObj.hideField() method.

 

Remarks
 

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

See also:

JavaScript API: Control object > getControl()

JavaScript API: Control object > show()

JavaScript API: Control object > setDisabled()

JavaScript API: Control object > clear()

JavaScript API: RunnerPage object > hideField()

Example: Show dropdown list of US states if US was selected in country list

Events: JavaScript OnLoad

JavaScript API: Control object

JavaScript API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software