# openlink

## Description

Opens a link in a new tab in a mobile web browser.

## Input / Parameter

| Name | Description            | Input Type  | Default | Options | Required |
| ---- | ---------------------- | ----------- | ------- | ------- | -------- |
| link | The link to be opened. | String/Text | -       | -       | Yes      |

## Output

| Description                        | Output Type |
| ---------------------------------- | ----------- |
| Returns the formatted information. | Object      |

### Object

| Key     | Description                                                             | Output Type |
| ------- | ----------------------------------------------------------------------- | ----------- |
| success | Boolean value to denote whether the function was executed successfully. | Text        |
| message | The message to print.                                                   | Text        |
| data    | Any additional message or data to print.                                | Text        |

## Example

In this example, we will use the `App.reload` function to open the link for the eMOBIQ dashboard in another tab.

### Steps

1. Drag a button component to the canvas and click on the 'Action' tab.
2. Drag the `App.openlink` function to the event flow under the 'press' event.

   ![](/files/CsuOgMozBk8Qj6fFANZt)
3. Under the inspector of the component, enter the link you want to open. In this example, we are using `https://main.emobiq.com/`, the link to the eMOBIQ dashboard.

   ![](/files/LtHlXdEEOEC5Un5Aprzb)

### Result

1. Save and preview the app.
2. Click the button to open the dashboard in another tab.

   ![](/files/HaaKmF950BYJyskA3CvQ)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/react-native/app/openlink.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
