Usa field.state.visible para condiciones y visibleInLayout para el panel activo.
field.state.visible
visibleInLayout