Previous: Actions


Associated with form controls, Triggers are activated when a defined Action is carried out. For instance, when the Action 'Button Click' takes place, data will be submitted to data stores if the SubmitData Trigger is configured. 


In this article, you will learn about the different types of Triggers and how to configure them.


How to Add Triggers

Upon configuring an Action, you can add Triggers. 

  1. Hover over the Action you added. 
  2. Click on Add a Trigger. 
  3. Specify a type and fill in details (more below). 
  4. Click on 'Save'. 



Types of Triggers

Here is a list of the Triggers you can add to your mobile forms in transform Studio. 


GetData

The GetData Trigger is used for retrieving data from back-end systems that you have configured in your application connections. 


To add the GetData Trigger:

  1. Select GetData from the Trigger list
  2. Enter a name for the Trigger. 
  3. Select a domain - Server to executive the trigger on the server-side, or Client to execute the trigger on the user's device.
  4. Select your pre-configured data connector to store and retrieve data.
  5. Click on the Data tab to select a Fetch Type, Scope, and other parameters. 
  6. Click on Save. 

SubmitData

The SubmitData Trigger is used for saving form Data into your enterprise's data storage through makeen transform Connectors. 


To add the SubmitData Trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain - Server to executive the trigger on the server-side, or Client to execute the trigger on the user's device.
  4. Select your pre-configured data connector to store and retrieve data.
  5. Click on the Data tab to further configure options such as enabling the retention of submission records. 
  6. Click on Save. 

SubmitLogin

The SubmitLogin trigger authenticates a user's login credentials to log them in. 


To add the SubmitLogin Trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain - Server to executive the trigger on the server-side, or Client to execute the trigger on the user's device.
  4. Select your pre-configured data connector to store and retrieve data.
  5. Click on Save. 

SubmitLater

By adding the SubmitLater Trigger, designers allow app users to save their forms in the Submission Queue once they perform the specified Action. 


To add theSubmitLater Trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

SendEmail

The SendEmail Trigger is used to trigger an email once the Action takes place. You will need to include a Sub-Trigger, however, to send email as PDF. 


To include the SendEmail Trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

ShowCategory

By adding the ShowCategory Trigger, the Categories page of the application will open once the user makes the desired action.


For adding ShowCaregory Trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

ShowDraft

By adding the ShowDraft Trigger, users will be directed to the Drafts Screen upon completing the Action. 


To include the ShowDraft Trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

ShowLogin

By adding the ShowLogin Trigger, performing the configured Action redirects the user to the Login Page of the application. 


For adding ShowLogin Trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

ShowNotification

Including the ShowNotification Trigger redirects the app user to the Notifications Screen of an application. 


To configure the ShowLogin Trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

ShowSettings

By adding the ShowSettngs Trigger, you will direct users to the Settings Screen upon completing the Action you specify. 


To configure the Trigger:

  1. Select ShowSettings from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

ShowSync

This Trigger redirects users to the Syn Screen in your application. 


To configure this Trigger:

  1. Select ShowSync from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

SaveContact

The SaveContact Trigger enables app users to save their Contact details on their devices once they complete the Action you configure. 


To add the SaveContact Trigger:

  1. Select SaveContact from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

SaveDraft

By configuring the SaveDraft Trigger, app users' form submissions will be saved as Drafts. 


To add this trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

CallNumber

By adding the CallNumber Trigger to action, form designers enable app users to dial a number that can be either specified in transform Studio or retrieved through an expression. 

To add this trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. Click on the Data tab and enter the phone number. If you add an expression, specify a connector and entity as well.   
  5. Click on Save. 

Close

By adding the Close Trigger, the page the user is on will be closed upon completing the Action configured. 


To add this trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select 'Client' as the Domain.
  4. Click on Save. 

OpenApp

By adding the OpenApp Trigger, an external app such as the device's maps application can be launched. 


To add this trigger: 

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. Click on the Data tab and select an app from the App drop-down. 
  5. Click on Save. 

TextNumber

Adding the TextNumber Trigger to an Action enables app users to send text messages to a specific number. 


To add this trigger:

  1. Select the TextNumber Trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. Click on the Data tab and enter the phone number. If you add an expression, specify a connector and entity as well.   
  5. Click on Save. 

NavigatePage

The NavigatePage Trigger directs users to a specific page/form once they perform the desired Action. 


To add the NavigatePage Trigger:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. Click on a page or form from the Target Page drop-down. 
  5. Click on Save. 

DownloadService

DownloadService Trigger initiates a download onto the user's device. 


To include the DownloadService Trigger in your form:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. Click on the Data tab, and specify a page ID and the file extension of your download.  
  5. Click on Save. 

ChangePassword

The ChangePassword Trigger is used to allow an app user to change their password. For this Trigger, having a User Management Connector is required. 


To include the the ChangePassword Trigger in your form:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. Specify the app's User Management Connector in the Connector drop-down. 
  5. Click on Save. 

ForgotPassword

Adding the ForgotPassword trigger to an Action allows app users to reset their passwords. For this Trigger, having a User Management Connector is required. 


To include the ForgotPassword Trigger in your form:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. Specify the app's User Management Connector in the Connector drop-down. 
  5. Click on Save. 

Logout

By adding the Logout Trigger, the user can easily Logout from an application by carrying out the set Action. 


To add a Logout Trigger to your form:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. Click on Save. 

UpdateProfile

The UpdateProfile Trigger is used to update the profile of a user in the User Management Connector. 


To include this trigger in your form:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. Specify the app's User Management Connector in the Connector drop-down. 
  5. Click on Save. 

RegisterUser

With this Trigger, app users can create users in the User Management Connector. Therefore, the latter connector should be configured beforehand. 


To include this trigger in your form:

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. Specify the app's User Management Connector in the Connector drop-down. 
  5. Click on Save. 

SetVariables

The SetVariables Trigger allows app users to use one value in different forms. 


To add the SetVariable Trigger: 

  1. Select the trigger from the Trigger list. 
  2. Enter a name for the Trigger. 
  3. Select a domain. 
  4. In the Data tab, specify a Scope, Mappings, and other fields to store a value in a variable and then use it in different controls using Bindings. 
  5. Click on Save. 

Watch How It Works

Watch this video tutorial to better understand how to define the business logic and flow of mobile apps using Actions and Triggers. App flow is the result of an activity such as pressing a button (Action), which in turn leads to one or more responses (Trigger).



Need more help? Contact us at support@makeen.io



Next: Subtriggers