Please enable JavaScript to view this site.

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

JavaScript API: RunnerPage object > hideField()

Scroll Prev Next More


Hides the field and its label. The hideField() method is available in the JavaScript OnLoad event of the Add/Edit/View/Register pages.





the field name. Example: "Make".

Return value

No return value.

Example 1

Hide the Make field. Add the following code to the JavaScript OnLoad event:



Example 2

Show the State field, if the Country is USA; hide the field otherwise. Add the following code to the JavaScript OnLoad event:


var ctrl = Runner.getControl(pageid, "Country");
if(ctrl.getValue() != "USA")
ctrl.on('change', function(){
if (this.getValue() == "USA"){
else {

See also:

JavaScript API: Control object > getValue()

JavaScript API: Control object > getControl()

JavaScript API: RunnerPage object > showField()

RunnerPage class: showField()

RunnerPage class: hideField()

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

JavaScript API: RunnerPage object

JavaScript API


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