How to write Hide When for Layers

Hi, Please let me know how to write the hide-when code for a layer having controls like textboxes, hotspots on it…

there is no hide- when option in the properties box of the layer…