# gotoPage

## Description

Allows users to redirect from the current page they are on to another page.

## Input / Parameter

| Name | Description                          | Input Type  | Default | Options | Required |
| ---- | ------------------------------------ | ----------- | ------- | ------- | -------- |
| p    | The name of the page to navigate to. | String/Text | -       | -       | Yes      |

## Output

N/A

Note: The page will be updated to show the page selected by the user.

## Callback

N/A

## Video

Coming Soon.

## Example

The user wants to navigate to another page.

### Steps

| No. | Description                                                                                                                                                                                                   |                                                                                                                                             |
| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| 1.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-41f3b6bcc7badb490cc1d18772517e289888399a%2FgotoPage-step-1.png?alt=media) | 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.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-c9c11bad61d6fbcf3b7a1fecd9cb1d5316fea6a4%2FgotoPage-step-2.png?alt=media) | Fill in the parameters of the function.                                                                                                     |

### Result

When the button is pressed, the page navigates to pgWelcome.

## Links
