Appearance
Actions & Workflows
Actions are buttons with logic behind them: how an app does more than "edit a field and save." Open a collection's Actions tab, click Add Action, give it a label, an icon, a colour, and pick a type.
Every collection starts with Edit, Delete, and Create already set up. Anything beyond that is yours to add.
Data actions
These read or write your records directly:
- Set fields: update one or more fields on the current record, each to the result of a formula (a literal value, a calculation, or a copy of another field).
- Delete record: remove the current record.
- Create record in table: create a new record in another collection, with each of its fields set from a formula evaluated against the current record (e.g. carry the current record's
idover to link back to it). - Bulk delete / Bulk create records / Bulk set fields: the same ideas, but applied to every record matched by a query instead of just one: "every cart item," "every overdue invoice."
- Form action: opens a small dialog collecting one or more inputs from the person first, then applies field updates that can reference what they entered. The inputs are full fields: they support the same types (including image and geolocation) and the same show/validate rules as a regular schema field.
Actions for the whole list
Turn on Collection-level action and the action belongs to the collection instead of to one row. It appears at the top of that collection's list (an Export CSV action gets its own download icon, and every other one sits behind a "more" menu) and can also be added to a dashboard panel. It follows the same rules as a row's buttons: the person's role must allow what it does, and its Show only if decides who sees it. Built-in actions (Create, Edit, Delete) and automatic ones never show here.
App actions
These navigate or chain other actions instead of touching data:
- View detail / Edit record / Create record / Go to list: jump to a different page within the app. Go to list can also pick a View, so a button can open Sales on its In the cart view instead of whichever view the person last used (see Opening a list on a view).
- View ref detail: follow a reference field on the current record straight to what it points to.
- Run actions: run a sequence of other actions in order, one after another. This is how multi-step workflows ("remove stock, record the sale, clear the cart, go to sales") are built from smaller, reusable pieces.
- Export PDF: render an HTML template (with the record's own fields, and loops over related records) into a downloadable PDF: invoices, receipts, reports. A price field prints as money in its own currency (
₦18,300.00), so a receipt template only needs the field itself. - Export CSV: a button at the top of the collection's list that downloads the list as a CSV file, which opens in Excel or Google Sheets. It exports exactly the records shown at that moment, so any filters or search the person has applied are respected. By default the columns are the ones the open list view shows (or every field, if that view has none), and you can pick your own fields and their order. Cells read the way people see them: the name for a reference, the label for an option, your own wording for a yes/no field. Numbers and dates stay plain so a spreadsheet can sort and add them. People only ever get records and fields they could already see in the app. To keep the button for certain people, set Show only if on it, for example
EQUAL(USERPROFILE("role"), ROLE("manager")). - Open create: open the create form for another collection with fields pre-filled from formulas. If that collection has a questionnaire view, set Open as to it and the action opens the step-by-step wizard instead of the plain form. Prefilled fields (for example the patient the questionnaire is about) are filled in and locked, and Navigate after save applies to the wizard too. Create record has the same Open as choice.
Page or dialog. The actions that open a form (Create record, Open create and Edit) can show it in a dialog over the page the person is on, instead of moving to the form's own page: set Show the form as to A dialog. It suits a short form started from a record or a list, such as adding a note to this record or one line to this order, because the person never leaves the page. The dialog closes when it is saved. Navigate after save still applies: back and none just close it, while list and detail close it and then go there. A dialog always shows the standard form, so it replaces the questionnaire choice.
Building a workflow without repeating yourself
Three habits keep a workflow short and hard to break:
- Derive, don't update. Stock on hand, an order total, "is this vehicle free" all follow from other records. Make them computed fields (a sum over stock movements, an
EXISTSover dispatched orders) and no action has to keep them in step. - Small actions, composed. Write each step once (one action per status change, one Create records from query per posting) and combine them with Run actions. A step that appears in no view's action list never shows as a button, so it can live purely as a building block. Put Ask for confirmation on the chain, not on each step.
- Snapshot what must not change. The price on an order line should be the price when it was added, not whatever the product costs today. Make it a plain stored field and copy it once with an Automatic: after record created action (Set fields on records, with
IF(ISBLANK({unit_price}), {product.unit_price}, {unit_price})so a typed price is kept). Derive the line total from that stored price. - Gate every stage with a Show only if so only the valid next step is offered:
AND(EQUAL({status},"packed"), NOT(ISBLANK({driver})), NOT(ISBLANK({vehicle}))).
Things to know when chaining:
- Every step runs against the record as the steps before it left it. A step's own Show only if, and any formula in it, sees the values an earlier step just saved, so "mark as paid, then mark as delivered only if it is paid" works as written. Computed fields and reference labels are the exception: they are worked out when the page opens, so a step that changes the fields they read does not refresh them for a later step's Show only if, Set fields or Form action formula. (A later Create record step does recalculate them.)
- Each step is checked against the person's role on its own. A chain that posts stock movements and updates an order needs create on the movements and update on the order, or that step is skipped.
- A chain isn't a transaction. Derived values mean a skipped step can't leave a number wrong.
- Limit a reference picker to the right records with Suggested values, a formula run for each candidate:
EQUAL({role}, ROLE("driver"))offers only drivers.
The repository's examples/logistics-chained.axiomers-app.json is a complete app built this way.
External actions
For leaving the app entirely: Phone call, Email, and Open URL actions open the device's dialer, mail client, or browser. Each takes a formula that gives just the number, the address or the web address, such as {phone} or {email}. The tel: and mailto: parts are added for you, and spaces in a phone number are fine. Email also has optional Subject and Message formulas, so a message can start already written, for example a subject of CONCATENATE("Invoice ", {name}).
- HTTP Request calls another service (an automation tool, your own API) with a URL, method, headers and a body built from the record, and can save parts of the response back onto a record. Secret headers, such as API keys, are stored on the server and never appear in your schema. For a GET, Fetch a sample asks the saved action's address once (save the schema first if the action is new or you changed its address) and shows you the real answer, and Save response to fields starts with a choice: Update this record (it lists only the fields you add, each with a dropdown of the values in that answer) or Add a new record (pick the collection and it lists all its fields). In the dropdown you can type to search by name or by value, and Match by name fills the obvious ones. A POST, PUT or PATCH changes things on the other side, so its button reads Send a test request: the editor makes one box for each key of the Body so you can type test text, asks you to confirm, and then really sends it (the call shows in the action's log). Use test values, not real data. Any other method, such as DELETE, is never called. You can always paste an example answer from the service's documentation instead.
- Payment lets the person pay for the record inside the app and credits you the money. It has its own page: Payments & Earnings.
Showing an action only sometimes
Any action can have a Show only if formula: the button disappears unless it evaluates to true. This is how you model "only show 'Add Stock' if there's no stock record yet," or "only allow 'Make Sale' if the cart isn't empty," without writing code.
Running automatically
By default an action runs when its button is clicked. Change When does this run? to have it fire automatically instead, right after a record on this collection is created, updated, or deleted, with no button shown at all. This is how you attach follow-up logic to every save, without relying on someone to remember to click something.
Good uses: a checkout (create the sale, then clear the cart), a snapshot (copy a price once when a line is added), stamping a reference number. An automatic action receives the record that was just saved.
Know where they run, because it is narrower than "whenever a record changes":
- After created runs when the record is created through the Create form or the questionnaire wizard. After updated runs when the Edit form saves, on every edit, so gate it with a Show only if. After deleted runs after the built-in Delete action.
- They do not run for records created or changed by another action (Create records from query, Set fields on records), by an import, or on another device.
- Keep an automatic action out of the view's action list, and don't also navigate from it when the action that opened the form already says where to go afterwards.
Data that belongs to the signed-in person, like a cart, needs every query limited to them, for example EQUAL({ownerId}, {_THISUser.id}). Without it, two people using the app at once see and clear each other's items.
Confirmation
Turn on Require confirmation before running for anything destructive or high-stakes: it shows a confirmation dialog with a custom message before the action actually runs.
Going somewhere afterwards
Under Behaviour, After it runs, go to sends the user somewhere once the action has finished. The choices are Stay here (the default, so nothing changes), Go back, A collection's list, This record's detail page, and A collection's create form. Pick a collection for the list and create options, or leave it blank to use the action's own collection.
A few rules keep this predictable:
- It only happens on success. If the action is blocked by a role, hidden by its "only if", cancelled at the confirmation, or fails, the user stays where they are.
- Delete already goes back by default. Setting a destination replaces that. The record's own detail page isn't offered for a delete, since the record is gone.
- Sequences navigate once. In a sequence of actions, the individual steps never navigate. Set the destination on the sequence itself, and it applies once, after the last step. That way a step can't pull the user away halfway through.
- Not every action has it. The navigate and open-form actions already move the user, payment leaves the app, and automatic actions run in the middle of a form saving, so none of those offer it. The editor only shows the option where it applies.
- Make sure the role can see the destination. If it can't view that collection, the user lands on an "Access Restricted" page.
Opening a list on a view
A collection can have several list views (a table, a board, "In the cart", "All sales"), and the list normally opens on the one the person used last, or the collection's default. Three places let you send someone to one particular view instead:
- Go to list, under View: the button opens that collection's list on the view you pick.
- After it runs, go to a collection's list: pick a View of that list, so a "Payment received" button can land on the In the cart list when it is done.
- After the record is saved, go to a list (on Create record and Open create): the same View of that list choice.
How it behaves:
- The view travels in the address (
?view=name), so it also works for a link you share. - It is for that visit only. It doesn't change the view the person remembers, so the next time they open the list themselves it is on their usual view. If they pick another view from the switcher, the address stops naming the first one.
- It never leaves a blank page. If the view has since been deleted, is the record's detail view, or is hidden from that person by its Show only if, the list opens as it always did.
- It belongs to the list's collection. Pick the collection first; the view choices are that collection's. Deleting a view that an action opens warns you, like any other place that names it.
Where it shows up
Most actions are record-level: they show up per row or on a record's detail page. Turn on Collection-level action to make it available on dashboard panels instead, where it isn't tied to any single record.
