How to add a Trigger to a Form Step
  • 30 Sep 2022
  • 3 Minutes to read
  • Contributors

How to add a Trigger to a Form Step


Article Summary

Overview

This article covers the different options for Triggers within Form Steps

In this article, you will learn...

  • How to proceed in Tulip after an operator wants to submit a form in a Form Step

There are two types of Triggers that you can use within a Form Step, they are:

  • Step level Triggers - These have the same functionality as any Step Trigger in a normal step.
  • Form Completion Trigger - This Trigger determines what happens when the operator clicks the button at the bottom right or left of the Form Step. You can use a Custom Trigger to add your own logic.

Form Completion Triggers fire when an operator presses the right button ("Submit" button) or the left button ("Cancel" button).

The "Submit" Button can trigger any of these events:

  1. “Go to Next Step”
  2. "Go to a Specific Step"
  3. Complete App”
  4. “Custom Action”

Steps 1-3 are all standard ways to advance through an App in Tulip. If you want to respond to a value in a certain Form field, you can achieve this via a Custom Action.

The "Cancel" button can Trigger any of these events:

  1. “Go to Previous Step”
  2. "Go to a Specific Step"
  3. “Custom Action”

Add Triggers to a button in a Form Step

To add a Trigger, select the "Custom Action" option in the dropdown next to "Next Button" or "Previous Button".

Then click on “Add Trigger”.

Fill in the conditions, actions and transition to be executed by the Trigger.

There is one constraint, however, that is associated with this Trigger. When a user clicks the button in the bottom left or right of the Form Step, the form will be submitted. The user must click one of those two buttons to trigger a form submission.

Here's an example:

NOTE

You probably still want to "Advance a Step" or "Complete the App" within this Trigger. Remember to add that action after you add your customized actions.

Further Reading


Did you find what you were looking for?

You can also head to community.tulip.co to post your question or see if others have faced a similar question!


Was this article helpful?