The builder
Button actions and interactions
What a click does: go to a page or section, download, open or close an overlay, share, copy a code, sign out, and more; a different action for guests, members and each user group; asking first, a loader and a message.
Setting an action
- Select the element (usually a button, but any element can take a click) and open Interaction in its General tab.
- Press Configure Interaction. The Interaction Studio opens.
- Choose Who can trigger this action? and the Action Type, fill in its fields, and press Save Interaction.
In the app: Properties › General › Interaction
Who can trigger this action?
Each visitor gets only their own action from the server. With branches, a signed-in member gets the first branch whose user group they are in, otherwise Other Logged In Users.
| Mode | What happens |
|---|---|
| Everyone (Always Active) | One Primary Action for every visitor. |
| Logged In Users Only | The Primary Action for signed-in members. Setup Fallback adds an Alternate Action for signed-out visitors; without one, it does nothing for them. |
| Logged Out Users Only | The same, the other way round. |
| User Specific (Advanced Branching) | Branches: If user belongs to group… Then perform… Add Another Branch for more. Then the fallbacks Other Logged In Users and Logged Out Visitors. |
Action types
| Action Type | Fields | Notes |
|---|---|---|
| None (Static) | – | The element does nothing. |
| Navigate to Link | Link Type: Page in Website (Select Page), Page Section (Select Section: any section or container of the page, header, footer or group), or Custom URL (Destination URL, Open in new tab). | Tokens such as {{item.url}} work in the address. |
| Download File | File URL. | Paste a file's s3:// link from the media library. |
| Open Overlay | Select Overlay. | See Overlays and pop-ups. |
| Close Current Overlay | – | For a close button inside an overlay. |
| Share (WhatsApp, social apps, email) | Share to: the device's share sheet (or copies the link), WhatsApp, Facebook, X, LinkedIn, Telegram, Email; Link to share (empty: this page); Words to share. | On a collection page or card, {{item.url}} and {{item.title}} share that entry. |
| Copy a Link or a Code | Text to copy (empty: this page's link); Message once copied (Copied). | For coupon codes, Wi-Fi passwords, referral links. |
| Trigger SaaS Action | Choose an action. | Actions Siteho adds for its own pages. |
| Sign Out (Logout) | Redirect URL after logout (empty: /login). | Shows Signing out... |
| Delete Account | Redirect URL after deletion (empty: /). | Deletes the member's account on the website. Always ask first. |
| Request Email Verification | – | Sends the member a code and opens Verify Email. Once a minute at most. |
| Enable 2FA (MFA) | – | Opens two-factor setup with a QR code for the member. |
| Disable 2FA (MFA) | – | Asks the member's Current Password. |
Ask first, a loader and a message
- Require User Confirmation
- A dialog before the action: Dialog Style (Default, Danger (Destructive), Warning, Info), Dialog Title (Are you sure?), Dialog Message, Confirm Button (Continue), Cancel Button (Cancel).
- Show Loading State
- Loader Type Spinner or Animated Dots, and Loading Text. The element dims and can't be clicked twice.
- Show Toast Notification
- A message Before Action or After Action, in one of six corners and edges, as Success, Error, Warning or Info, with your Toast Message.
Worked examples
Worked example: Sign in for guests, Account for members
- Add a button labelled Sign in. Interaction: Logged Out Users Only, Primary Action Navigate to Link › Page in Website › /login.
- Press Setup Fallback: Alternate Action Navigate to Link › /profile.
- Role Visibility can then show a second label to members, or keep one button that does the right thing for each.
Ideas to try
- A Copy a Link or a Code button showing SPRING20 with the message Code copied: paste it at checkout.
- A Share button on every recipe card: Share to WhatsApp, Link to share {{item.url}}.
- A Delete Account button with Require User Confirmation in the Danger style and the message This can't be undone.
- User Specific branches: Pro members open the course, other members open an upgrade overlay, guests go to /register.