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.
- Hover over the Action you added.
- Click on Add a Trigger.
- Specify a type and fill in details (more below).
- 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:
- Select GetData from the Trigger list
- Enter a name for the Trigger.
- Select a domain - Server to executive the trigger on the server-side, or Client to execute the trigger on the user's device.
- Select your pre-configured data connector to store and retrieve data.
- Click on the Data tab to select a Fetch Type, Scope, and other parameters.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain - Server to executive the trigger on the server-side, or Client to execute the trigger on the user's device.
- Select your pre-configured data connector to store and retrieve data.
- Click on the Data tab to further configure options such as enabling the retention of submission records.
- Click on Save.
SubmitLogin
The SubmitLogin trigger authenticates a user's login credentials to log them in.
To add the SubmitLogin Trigger:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain - Server to executive the trigger on the server-side, or Client to execute the trigger on the user's device.
- Select your pre-configured data connector to store and retrieve data.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- Click on Save.
ShowNotification
Including the ShowNotification Trigger redirects the app user to the Notifications Screen of an application.
To configure the ShowLogin Trigger:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- 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:
- Select ShowSettings from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- Click on Save.
ShowSync
This Trigger redirects users to the Syn Screen in your application.
To configure this Trigger:
- Select ShowSync from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- 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:
- Select SaveContact from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- Click on Save.
SaveDraft
By configuring the SaveDraft Trigger, app users' form submissions will be saved as Drafts.
To add this trigger:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- Click on the Data tab and enter the phone number. If you add an expression, specify a connector and entity as well.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select 'Client' as the Domain.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- Click on the Data tab and select an app from the App drop-down.
- 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:
- Select the TextNumber Trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- Click on the Data tab and enter the phone number. If you add an expression, specify a connector and entity as well.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- Click on a page or form from the Target Page drop-down.
- Click on Save.
DownloadService
DownloadService Trigger initiates a download onto the user's device.
To include the DownloadService Trigger in your form:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- Click on the Data tab, and specify a page ID and the file extension of your download.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- Specify the app's User Management Connector in the Connector drop-down.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- Specify the app's User Management Connector in the Connector drop-down.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- Specify the app's User Management Connector in the Connector drop-down.
- 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:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- Specify the app's User Management Connector in the Connector drop-down.
- Click on Save.
SetVariables
The SetVariables Trigger allows app users to use one value in different forms.
To add the SetVariable Trigger:
- Select the trigger from the Trigger list.
- Enter a name for the Trigger.
- Select a domain.
- 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.
- 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