go-back
This action is used to return to the previous page. Most jigs include this action automatically as an arrow to the left of the title of the jig. This action can be used in a list of actions, such as swipeable and rightElement, or used together with another action, where go-back is called after the main action and returns the user to the previous page.
Configuration options
A go-back action can be set up in various ways:
As a separate action or in the action list
As a swipeable action in the left or right direction
As rightElement in the list
As an associated action in the action list
Examples and code snippets
go-back as an action

The simplest example of a go-back action is to use it as a separate action. When configured, a button will appear at the bottom which will return us to the previous page when pressed. In this case, the use of the function is unnecessary because as we can see in the screenshot there is an arrow to the left in the upper left corner. This means that this jig already has a go-back action automatically in it and the arrow has the same function as the "Go back" button below.
Examples:
See the full example using static data in GitHub. See the full example using dynamic data in GitHub.
actions:
- children:
- type: action.go-back
options:
title: Go backgo-back swipeable left/right

This example uses the go-back action as a swipeable property. We can choose the swipe direction left or right. After pressing the button, we return to the previous page.
Examples left: See the full example using static data in GitHub. See the full example using dynamic data in GitHub.
Examples right: See the full example using static data in GitHub. See the full example using dynamic data in GitHub.
go-back rightElement

go-back-on-success
In this example, we use the action.go-back with onSuccess to take you back to the main list after signing a form.
Examples: See the full example using static data in GitHub.

Last updated
Was this helpful?