Please enable JavaScript to view this site.

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

JavaScript API: RunnerPage object > toggleItems()

Scroll Prev Next More


Shows or hides a set of page elements in JavaScript events. Similar to toggleItem() function but will work much faster if you need to show or hide a large number of elements.


toggleItem( itemIds, show );



array with the element IDs. You can use this method only with the items (elements) that have an ID. How to find item ID?


use true to show the item, and false to hide it.

Return value

No return value.


// hide some fields
pageObj.toggleItems( [
], false );


See also:

RunnerPage class: toggleItem()

RunnerPage class: hideItem()

RunnerPage class: showItem()

JavaScript API: RunnerPage object > hideField()

JavaScript API: RunnerPage object > showField()

AJAX helper object

Click action

Field events

JavaScript API: RunnerPage object

JavaScript API