Show/Hide Toolbars

PHPRunner 9.8 Manual

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

PHPrunner32x32     PHPRunner manual

Javascript API: hideField()

Scroll Prev Next More


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




field - field name. Example: "Make".

Return value

No return value.

Example 1

Hide the Make field:

JavaScript OnLoad event


Example 2

Show the State field, if Country is USA, or otherwise hide:

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: showField()

Method: showField()

Method: hideField()