GOBACK function

GOBACK(Target?) GOBACK(Target?)

Target

Screen (optional)

The target screen the user should be moved backward to. If this screen has not been visited previously, no action is taken. If omitted, the user is moved backward to the screen preceding the current screen, if possible.

Returns

Nothing

This function does not return a value.

Moves the user backward to a previously-visited screen. GOBACK()GOBACK() moves the user back to the screen preceding the current screen, if possible.

This function can only be used from an action formula. It is typically invoked from a formula associated with the OnPress property of a formula button.

The optional parameter to this function specifies what screen to display. If that screen has not been visited by the user, no action is taken.

As a result, it is possible for a user to navigate forward any number of times and be brought back all the way to the first screen, simply by specifying the first screen as the parameter to this function.

Use GOFORWARD to move the user forward instead.

Examples

GOBACK()GOBACK()

Moves the user back exactly one screen, if possible.

GOBACK(MainScreen)GOBACK(MainScreen)

Moves the user back to the screen MainScreen. If that screen has not been visited previously, no action is taken.

GOBACK(IF(Verdict = "Success", MainScreen, DetailsScreen))GOBACK(IF(Verdict = "Success"; MainScreen; DetailsScreen))

Moves the user back to the screen MainScreen, but only if the Verdict field is equal to "Success." Otherwise, the user is moved back to the screen DetailsScreen.