Success/Error Actions
In this section you will learn about Success/Error Actions
Last updated
In this section you will learn about Success/Error Actions
Last updated
Let's assume a scenario where you would like to perform a specific action, e.g. immediately send an email to a user for whom you just changed the status.
In JetAdmin you can create Actions Workflow that allows you to perform multiple actions immediately after performing the base action.
When configuring the Button component, you will see the Actions tab where you can create special actions that should be executed when the base action has been executed successfully or has been executed with errors.
Note that these operations are not performed sequentially but in parallel, so be careful when creating some dependent operations (one of them might be executed earlier without the required input data and such an operation will end with an error).
Let's implement the following case where you would like to redirect your user to another page automatically when he/she has performed a specific action on the first page.
Suppose you want to create a sequence of forms to be filled out by your user. Let's set up an After Completion Action for the first button. For this purpose, let's add the Navigate to page action as an After Completion action. To do so, follow the steps:
Click on the Button
Go to the Actions tab
Click on the Success Action
Choose Navigate to Page
Choose the Link of the Page
Now after submitting the initial form, your users will be automatically redirected to another page.
Suppose you want to automatically send an email to a user when some action is performed on his/her data, such as a status update. Let's implement it by adding Run Operation as an After Completion Action. To do so, follow the steps:
Click on the Button
Go to the Actions Tab
Click on the Success Action
Choose Run Operation -> App Built-ins -> Send Email
Specify the input TO
Now as soon as the status has been changed an email will be sent automatically.
See here how to use formulas to send a dynamic message, e.g. about the current and previous status.