# Capture Event when docked-view is hidden

**URL:** <https://forum.inductiveautomation.com/t/capture-event-when-docked-view-is-hidden/91438>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [June 5, 2024, 7:23pm UTC](https://forum.inductiveautomation.com/t/capture-event-when-docked-view-is-hidden/91438 "2024-06-05T19:23:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dustin.cooper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dustin.cooper/32/29963_2.png) [@dustin.cooper](https://forum.inductiveautomation.com/u/dustin.cooper)\
**Post date:** [June 5, 2024, 7:23pm UTC](https://forum.inductiveautomation.com/t/capture-event-when-docked-view-is-hidden/91438/1 "2024-06-05T19:23:40Z")

</div>

Hi folks,

I've had a look through the manual and other forum topics, and I can't find this topic discussed. I'm looking to capture an event (and set a session custom prop) when a docked-view is hidden via the [handle](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/views-in-perspective/docked-views#docked-view-properties), or when the docked view is auto-hidden, if the display property is set to onDemand or auto.

I've tried using the view `onShutdown` event, but this does not appear to fire, nor does the root container `onShutdown` fire when the docked view is hidden.

I know I could skin this cat if I implemented a custom button to act as a "handle" for the dock, but I would rather keep the built-in handle, if possible.
