Loading...

We're setting up your new app...

Template

Share Button

How to create a share button

Industry: n/a
Function: Other
This app shows how to create a share button, which allows a user to share a particular row with a user-specified email address. Click on the Share button for a product and you'll be taken to a form where you can enter an email address and a comment to include in the email. When you submit the form, a workflow email will be sent to the given address.
Loading...

How we built this app

To create the share button, we first added a new table called Email Form. The Email Form table is used to define the form that users fill out when sharing the product. The form has the following columns: - Timestamp, which serves as the key column - Email To, which holds the recipient's email address - Comment, which contains a custom message to include - Product, which is a reference to a row in the product table We then defined the Share button as an action on the Product table. The Share action navigates the user to the form view for the Email Form table. It does this using the following formula: LINKTOFORM("Email Form", "Product", [_THISROW]). This formula means "go to the Email Form view and initialize the Product column to the key value of this row". Finally, we added a workflow rule that fires when the user adds a row to the Email Form table. The workflow rule template accesses the Email To column to set the recipient. It also uses de-reference expressions like [Product].[Name] and [Product].[Price] to add information about the product being shared.
This is a preview of the data sets used in the app.

Data

This is a high-level model of both the data entities and the UI elements in the app.
Loading...
Start for free