# \[Tip of the Week\] Adding Triggers to the Master Layout

**URL:** <https://community.tulip.co/t/tip-of-the-week-adding-triggers-to-the-master-layout/3001>\
**Category:** General\
**Tags:** weekly-tip\
**Created:** [June 22, 2021, 3:03pm UTC](https://community.tulip.co/t/tip-of-the-week-adding-triggers-to-the-master-layout/3001 "2021-06-22T15:03:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [June 22, 2021, 3:03pm UTC](https://community.tulip.co/t/tip-of-the-week-adding-triggers-to-the-master-layout/3001/1 "2021-06-22T15:03:00Z")

</div>

there are many use cases in which it’s necessary to repeatedly perform tasks (such as storing data in a Table). while you can add Triggers to Create Table Records and store the information from a Button click on individual Steps, adding Triggers to the Master Layout will save you a lot of time and will simplify changes when they’ll need to be made in the future. here’s a quick guide for how to do this!!

set up your Table to store all the data you’d like to store (procedure data in my example):

 ![Screen Shot 5](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/c/c560d7f2d87a1c2827d542a3e089ef40c1ac419a.jpeg)  
set up your [Master Layout](https://support.tulip.co/en/articles/2217831-how-to-use-master-layout) with a `Next` Button and a Trigger on `Step Exit` to perform the Actions that need to be repeatedly performed:  
 ![Screen Shot 1](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/6/6d790c1d03d3ea45be26f8f20c2751e6267d0899.jpeg)  
 ![Screen Shot 2](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/7/76211ea566d53f3d98af5d160a6f72a42b0f4fa5.jpeg)  
 ![Screen Shot 3](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/e/e78267ac96cbcef46e597bb3aa25b91a614524e2.jpeg)  
I’d like to point out that I added a Conditional statement to only execute this Trigger if the Step Name contains a number, so it’ll only execute on the actual Procedure steps that have a Number in their Name.

finally, the Variable(s) that need to be stored can be App Variables that are cleared on Step Open:

 ![Screen Shot 4](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/4/4440478ea1603e0179409969e5c6ac5833ef5bbc.jpeg)

are you using Triggers on your Master Layout already?? if so, let us know how you’re using them!!

---

_[View the full topic](https://community.tulip.co/t/tip-of-the-week-adding-triggers-to-the-master-layout/3001)._
