Hiding or showing layout objects
You can control the visibility of layout objects by indicating whether an object is hidden or displayed depending on a specific condition or calculation. For example, you can choose to show or hide certain fields in a questionnaire as a result of a user’s response to a specific question.
To designate a layout object as hidden:
In Layout mode, select the object.
See Selecting objects.
Click Inspector Inspector button in the layout bar, then click Data.
For Hide object when, click Pencil button and specify a calculation to determine when the object should be hidden, then click OK.
Note  In Layout mode, choose View menu > Show > Hide Condition to identify objects for which a condition has been defined to hide them. Such objects display a badge Hidden object badge in Layout mode.
Related topics 
Identifying badges on layout objects
Defining conditional formatting for layout objects
Refresh Window script step
Refresh Object script step
GetLayoutObjectAttribute function