Making a control visible or invisible
You can make a UI control object visible or invisible based on a predefined condition by editing attributes of its corresponding control element in the controls.xml file.
About this task
When a control is invisible, it is created at run time and the space it occupies in the UI is blank. Whether a control is visible or invisible is based on its state and the conditions specified in its <visible> and <invisible> attributes in the controls.xml file. You can use this functionality to customize the visibility of a control based on conditions you specify. For example, you may want to make the Highlight Search Results control visible when search results are being displayed and invisible when search results are not being displayed. To do so, add the applicable conditions to <visible> and <invisible> tags within the Highlight Search Results control's definition in the controls.xml file.