WebControl.Visible

From Xojo Documentation

Property (As Boolean )
aWebControl.Visible = newBooleanValue
or
BooleanValue = aWebControl.Visible

New in 2010r4

Supported for all project types and targets.

If True, the control is drawn. If False, it's not.

Example

Hide a control based on a checkbox setting:

If ShowEmailCheckbox.Value Then
EmailField.Visible = True
Else
EmailField.Visible = False
End If