--- title: "Event Actions" slug: "event-actions" updated: 2024-02-05T11:27:20Z published: 2024-02-05T11:27:20Z canonical: "kb.dataparc.com/event-actions" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.dataparc.com/llms.txt > Use this file to discover all available pages before exploring further. # Event Actions Event Actions are used to initiate a specific action when a specified event occurs. In most cases, this feature is used to open a file when a display element is clicked. For example, a button in a PARCgraphics display can launch another PARCview display or any Windows-recognized file. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image165.jpg) **Action:** The action to take when the event occurs. Select from the drop-down menu. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image167_001.jpg) **Open Display:** Open a specified file. **Run Script:** Run a specified script when the event occurs. **Update:** Update a specified property value of an element in the display when the event occurs. **Event:** The event that will cause the specified action to occur. Select from the drop-down menu. The options in the menu change depending on the selected element. Only one type of action can be taken for a given event. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image169.jpg) By default, the list of events is filtered to the most commonly used. Check the box next to the event field to see more events. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image171.jpg) **Event Action Definition:** After an action and a event are specified, an event action definition row appears. The options vary depending on the selected event and action. Click the red “X” to remove the event action definition. **Open Display Action:** Specify a file to open. Click the ellipsis button ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image127_001.png) to open the file browser. If Show New is checked, the file will open in a new window. Unchecking this option only applies if the specified file is another [PARCgraphics](/v1/docs/displays-parcgraphics) display. If unchecked, the graphic loads in the same window, and users can click back and forward browser-style buttons to navigate between displays. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image173.jpg) **Run Script Action:** Click the ellipsis button ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image127_001.png) to open the [Edit Code](/v1/docs/edit-code) window. Enter code beneath the newly created subroutine. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image175.jpg) **Update Action:** Specify a display element and property of that element to update when the event occurs. Click the plus sign to update more than one element or element property at once. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image176.png)