Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Sample events > Appearance

Hide empty fields on the View page

Scroll Prev Next More


Let's say you have a list of fields on the View page, and you want to hide those that are empty. For this purpose, use the following code in the View page: Before display event for each field you need to hide. This example uses field named EPAHighway.




if (!$values["EPAHighway"])


Note: There is an option to hide empty fields on the View page automatically. To enable it, go to the Choose pages screen, click the Settings button near the View record checkbox and then select Hide empty fields checkbox.

See also:

JavaScript API: hideField()

Before display event for all pages except View/Edit

JavaScript API: hide()

RunnerPage class: hideItem()

JavaScript API: toggleItem()


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