Triggering Workflows From Pages And Buttons
Triggering Workflows from Pages and Buttons
Most workflows fire automatically — when a record is created, when a schedule ticks, when a user logs in. But some workflows are best run on demand: a user clicks a button, a workflow fires for that exact record, and the user sees the results in real time.
This is what the Manual trigger is for, and how it pairs with action buttons and "Trigger Workflow" actions on your pages.
How Manual triggers work
A workflow with a Manual trigger doesn't fire on record changes or on a schedule. It only runs when something explicitly tells it to. The most common ways are:
Setting up a Manual workflow
- Add a new workflow as usual.
- Pick the table the workflow should operate on.
- For the trigger, choose Manual.
- Add your action steps.
- Save and activate.
Adding a "Trigger Workflow" button on a page
- Open the page in the Builder.
- Click the component (Table, List, Grid, etc.) that shows the records.
- Open the Action settings — typically you can add row-level actions (one button per row) or component-level actions.
- Add an action with type Trigger Workflow.
- Pick the workflow you set up. Tadabase only shows Manual workflows in this list.
- Configure the button label, icon, and confirmation message.
When the user clicks the button, the workflow fires for that row's record. The user sees the workflow's notification messages (if you've enabled them on each step) as it runs.
Client-side vs. server-side runs
Manual workflows triggered from a button run with the user's browser in the loop. That means:
- The user sees real-time progress messages from each step.
- UI-affecting actions (showing modals, redirecting, copying to clipboard) work the way you'd expect.
- The workflow's runtime is bounded — long-running workflows should still be split into smaller chunks.
Use Show Message for great UX
Manual workflows are the perfect place to use the Show Message action and the per-step notifications. The user clicked a button — they're watching for feedback. Add start/processing/success/error messages so they know the workflow is doing something.
| Step | Message |
|---|---|
| Generate PDF | "Generating your invoice…" → "Invoice ready" |
| Send Email | "Sending email…" → "Email sent" |
| Show Message (final) | "All done! Check your inbox." |
Confirmation prompts before running
For destructive or high-impact actions (mass updates, charging cards, bulk emails), enable the confirmation prompt on the action button. The user is asked "Are you sure?" before the workflow fires — preventing accidental clicks.
Worked examples
Resend invoice
- Trigger: Manual, on Invoices.
- Step 1: Show Message — "Re-sending invoice…"
- Step 2: Create PDF Form — generate the invoice PDF.
- Step 3: Send Email — to the customer with the PDF attached.
- Step 4: Update Record — increment Send Count.
- Page setup: add a "Resend Invoice" action button on the Invoices table that triggers this workflow.
Approve a request
- Trigger: Manual, on Time Off Requests.
- Step 1: Update Record — set Status = Approved, Approved By = logged-in user, Approved At = current date/time.
- Step 2: Send Email — to the requesting employee with their approval.
- Step 3: Slack: Send Channel Message — post the approval to #hr.
- Page setup: add an "Approve" action button (with confirmation) on the manager's request list.
Recalculate totals
- Trigger: Manual, on Invoices.
- Step 1: Lookup Records — find all line items for this invoice.
- Step 2: Run Custom Code — sum up the line items.
- Step 3: Update Record — write the new totals back to the invoice.
- Page setup: add a "Recalculate" button on the invoice detail page.
We'd love to hear your feedback.