getPreviousPage

Description

Returns the name of the page the user was on before the current page.

Input / Parameter

N/A

Output

DescriptionOutput Type

Returns the name of the previous page.

String/Text

Callback

N/A

Video

Coming Soon.

Example

The user wants to get the name of the previous page they were on.

Steps

No.Description

1.

Drag a button to a page in the mobile designer. Select the event click for the button and drag the gotoPage function to the event flow.

2.

Fill in the parameters of the function.

3.

Drag the console function to the node below the gotoPage function.

4.

Select the function parameter input type for the value parameter.

5.

Drag the getPreviousPage function to the node in the subflow.

Result

When the button is pressed, the page will navigate to pgWelcome and the console will show the name of the previous page.

Last updated