Run Action
Runs a named action from the app's actions, so the same steps can be reused.
Category: Logic
#When to use it
Use it to run a reusable action: the same steps from several places, like signing in from a button and from the password field's Return key.
#Example
A Sign in button, When Tapped: Run Action with Action: signIn. The password field's When Return Is Pressed has the same step.
#Good to know
- The action's steps run right there, as part of the same run. When they finish, the steps after Run Action carry on.
- With sends values in; the action's steps read them as
params.<name>. - A failure inside the action stops the whole run unless it's inside a Try.
- The button next to Action opens the picked action, or makes a new one.
#Add it
Select a view, open the Inspector's Actions tab, pick when it runs, tap Add action and choose Run Action (under Logic). Tap the step to open its settings.
#Settings
| Setting | What it does | Kind | Default |
|---|---|---|---|
| Action | Which action. | Reusable action | Required |
| With | Values for its params. | Fields | Optional |