Add a Share Action

You add a Share action to share content with other applications, such as Facebook, Twitter, Slack, and SMS, by invoking the native sharing capabilities of the host platform. This action requires the user's consent, and as a best practice, consent should only be sought on a relevant user action.

Note:

Web apps require the web browser running the app to support the Share action. Currently, not all browsers support this native feature.

To use a Share action:

  1. Add the action in one of three ways, depending on your preference and where you want it added:
    • Drag the action from the Actions palette onto the canvas, dropping the action either at the bottom edge of the action it is to follow, or at the top edge of the action it is to precede.
    • Double-click the action in the Actions palette to add it to an empty canvas or to the end of an action chain.
    • On the canvas, select the action you want the new action to follow, then double-click the new action in the Actions palette.
  2. Update the ID field in the Properties pane to make the action more identifiable.
  3. Configure the Title, Text, and URL. All properties are individually optional, but at least one property must be specified. Any URL can be shared, not just those under the website's current scope. Text can be shared with or without a URL.
    1. In the Title field, enter the title of the document to be shared.
    2. In the Text field, enter the text that will form the body of the message being shared.
    3. In the URL field, enter the URL that refers to the resource being shared.

    Here's an example that shares the current page's title and URL:
    Description of jsac-share-action-example.jpg follows
    Description of the illustration jsac-share-action-example.jpg

For API information about this action, see Share in the Oracle Visual Builder Page Model Reference.