The hideField() method allows you to hide a field and its label. This method is available in the BeforeDisplay event of the List/Add/Edit/View/Register pages.
Syntax
hideField($field)
Arguments
$field
a name of the field. Example: "Make".
Return value
No return value.
Example
Hide the Make field:
$pageObject->hideField("Make");
Note: fields hidden by the hideField() method can be displayed using JavaScript API: RunnerPage object > showField() 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:
•RunnerPage class: showField()
•JavaScript API: RunnerPage object > hideField()
•JavaScript API: RunnerPage object > showField()
•Example: Hide empty fields on the View page