There is a "Visible" property for all the EJS GUI elements.

You can define a variable (e.g. show) and assign either "true" or "false" under different condition in your code to make the element [b]visible[/b] or [b]hidden[/b].