Form
Form puts a question to a person and brings their answer back into the flow.
It is one node that does three jobs, and which one it does follows from how you
wire it rather than from a setting. You find it on the node picker’s
Triggers shelf.
The node has four handles: form, input, output, and Send via.
Three roles, decided by the wiring
Section titled “Three roles, decided by the wiring”| Wire this | Role | What happens |
|---|---|---|
| Its form handle to the Start node’s trigger handle | Page | A published page. Every submission starts a run while the node is switched on. |
| An input edge from an upstream node | Ask | The run mints a one-time link, sends it, and waits for the answer. |
| Its output to an Agent’s Tools handle | Tool | The agent asks a person when it needs to, and its loop waits. |
| Nothing yet | Unwired | Not an error. This is what the middle of building a flow looks like. |
There is no role field, and that is deliberate: a dropdown that changed the
node’s handles would invalidate every edge already attached to it, so changing
one setting would quietly break the graph.
Wiring it as a page and as an interruption is the one combination that has no safe reading, so it is refused by name rather than resolved by guessing.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Title (title) | string (required) | — | The heading a visitor sees above the form. |
Form (form) | object (optional) | — | The form the person fills in: its fields, and where each goes. |
Actions (actions) | list (optional) | — | Buttons the person answers with, instead of one plain send button. Only used when this node interrupts a run. |
Portal (portalId) | string (optional) | — | Which of your portals this form lives on. Leave it empty to use the workspace’s Forms portal. A published page follows the portal’s sign-in setting; a one-time link sent while a run waits follows Who may answer instead, whatever that setting. |
Who may open the page (authMode) | one of anonymous, magic_link, members, member (optional) |
anonymous |
Who may open this form when it is published as a page. Only used when no portal is chosen above, since a portal brings its own answer. |
Who may answer (whoMayAnswer) | one of anyone, members (optional) |
anyone |
Who may answer the one-time link this form sends while a run waits. Anyone with the link answers without signing in, and the answer does not say who, except that a button pressed in Discord or Slack records the chat account, under a name its owner chose and anyone can fake. Workspace members sign in to Publicus first, and the answer names them. |
Where files go (uploadStoreId) | string (optional) | — | Where files and signatures go, when this form asks for one by a one-time link. |
Button text (submitLabel) | string (optional) | — | The text on the button that sends the form. |
Confirmation (confirmation) | string (optional) | — | What the visitor sees after sending it. |
After the run (resultMessage) | string (optional) | — | What the person reads once the run has done what follows their answer, e.g. whether the order was accepted. Only used when this node interrupts a run. |
Links after sending (links) | list (optional) | — | Links under the thanks, e.g. back to the portal’s order list. Only used when this node interrupts a run. |
Email the link to (recipient) | string ✦ (optional) | — | Who to email the link to. Only used when this node interrupts a run. |
Line in the email (message) | string ✦ (optional) | — | A line above the button in that email. |
Prefill (prefill) | string ✦ (optional) | — | Values to fill the form in with before the person sees it. Only used when this node interrupts a run. |
Link works for (days) (expiresAfterDays) | integer (optional) | 14 |
How many days the link works for. Only used when this node interrupts a run. |
When nobody answers (timeoutNodeId) | string (optional) | — | Where to continue when nobody answers in time. Leave empty and the run stops there. |
Fields marked ✦ accept expressions.
Several fields apply only to the ask role, and say so in their description:
whoMayAnswer, recipient, message, prefill, expiresAfterDays,
timeoutNodeId, resultMessage and links mean nothing on a page that anyone
can open. Once the form is
wired, the editor hides Who may answer on a page and Who may open the
page (authMode) on a form that asks. Where files go, Button text,
Confirmation, After the run, Links after sending, Line in the
email, Prefill, Link works for (days) and When nobody answers sit
under More settings.
Leave Button text and Confirmation empty and the page words them in its portal’s language: Send and a thank-you in English, Versturen and Bedankt in Dutch. On the page’s form block you can then write your own. Fill them in on the node and the node’s words are used wherever the form appears, on its page too, where the form block then shows them locked.
The form a person fills in
Section titled “The form a person fills in”You build the form on one canvas, under Layout. Add to the layout offers fields beside sections, tabs, steps and text. Open a field to set two things:
- What it asks: its name in the data (what the flow reads the answer back as), its type, whether it must be answered, its choices, what it starts with, and for a number its lowest and highest value. A group or a list of rows holds its own fields inside it.
- How it looks: its label, placeholder, help text, when to show it, and options such as text after the value.
Preview shows the real form as you have built it, before you save.
For a page-wired node the form is also the flow’s own input: the node writes it into the flow’s What it asks for, so an agent invoking the flow and a stranger filling in the form supply exactly the same payload. That section of Flow settings goes read-only and names this node as its owner.
A label or help text that is plain text is also what an agent calling the flow
reads. Wording that greets the person, such as Welcome, {{ $visitor->name }},
is shown only on the form. It reads
$visitor, the person filling it in.
Renaming a field (its name in the data) is followed when you save: the expressions in this flow that read the answer, the flows that call this one, and the portal forms that style it are updated, and a notice lists what changed. Anything outside your workspace that sends the old name, such as an MCP client, has to be told.
When the node asks a person during a run, a field can also take its starting value and its choices from the run: Prefilled from the run and Choices from the run under the field. They are worked out once, when the link is sent, so a link opened a week later still asks the question that was sent.
- Prefilled from the run takes an expression giving text or a number, such
as
{{ $prev->email }}. Anything else leaves the field empty. - Choices from the run takes an expression giving a list, written without
{{ }}, such as$prev->open_orders. The person can only answer with one of those choices. If the list is empty or isn’t a list of texts or numbers, the run stops at this node and names the field, rather than letting the person type anything. A list holds at most 500 choices.
A published page has no run to work these out from, so it uses the field’s fixed Prefilled with and Choices.
Show it, do not ask for it draws a field as its value instead of a control,
for a reference, a total, or a quote the person is signing off. The person reads
it and cannot change it. The value is the first of these that has one:
Prefill (prefill), Prefilled from the run, then Prefilled with.
With none of them the field shows nothing, so give it one. The answer carries
the value the field showed, so the next step can rely on it. On a group or a
list of rows, the option shows everything inside it.
Looking a value up as the person types
Section titled “Looking a value up as the person types”A field of the kind Look up as you type searches as the person types, for an article in a catalogue or a customer in your CRM. It works on every form a person fills in: a link a run sends, a portal’s form and a button’s form, a table’s own button and the Run box. It searches with a flow, an expression or a table:
- Search with a flow calls your systems, such as a catalogue’s API. The
flow receives the text typed as
$start->search. - Or with an expression searches what the run gave it, such as the
addresses of the customer the order is for, and calls nobody, so it answers
at once. Write it bare, without
{{ }}. The text typed is$start->search:array_values(array_filter($start->addresses, fn ($a) => str_contains(strtolower($a->label), strtolower($start->search)))). - Or in a table searches the rows of one of your tables, also at once and
calling nobody. It suits a catalogue that a scheduled flow keeps up to date.
You choose the columns the text typed is looked for in (Look for the text
in), the column a choice stands for (A choice is, the row when you leave
it empty), what a choice shows (A choice shows, such as
{code} {name}) and which fields beside the lookup it fills from which columns (Fill in). Only rows where narrows the rows to those whose column equals a value you give the search, such as the customer the order is for.
A flow or an expression ends on a list of choices:
[ { "value": "A100", "label": "A100 Copper pipe 15mm", "fill": { "description": "Copper pipe 15mm", "net_price": 4.12 } }]label is what the person sees and value is what the answer carries. fill
is optional: picking the choice sets the fields it names, the ones beside the
lookup, in the same row when the lookup sits in a list of rows. A field set to
Show it, do not ask for it keeps the value the choice gave, so a price the
person reads is the price the answer carries. A plain list of texts works too,
and so does an object holding the list under options.
- Search after is how many characters the person types before it searches (2 unless you set it). At 0 the field opens on its first choices, up to 50, and still searches as the person types: the right setting for a short list kept in a table, such as cost categories. The list is searched once, when the form opens, so a lookup that searches with a flow runs that flow every time someone opens the form.
- Give the search passes values from the run, such as the customer the
order is for. They are worked out once, when the link is sent, and the
search reads each as
$start->name. The page cannot change them. A form that starts a run rather than answering one, such as a portal’s form, gives values over the person filling it in instead ($visitor->email), and a row’s button over its row ($row->code). Publicus works these out itself each time, so the page cannot change them either. - Also give it the fields passes what the person filled in beside the
lookup, such as the country for a lookup of cities. The search reads each as
$start->name, and a table can narrow by it. When one of those fields changes, the lookup is emptied, with what its choice filled in, because the choice was found for a value that is no longer there. - The person can only answer with a choice the search offered. Turn on Keep a value the search does not find to let them use the text they typed instead.
Checking the answer before it is accepted
Section titled “Checking the answer before it is accepted”Check the answer, on the form’s While answering tab (x-check in the
form), runs a flow on the answer when the person presses send, for an address
checked against a wholesaler or an order checked against stock. The flow
receives the answer as $start->answer, and each value under Give the
check as $start->name. It ends on its verdict:
{ "valid": false, "message": "Please check the address.", "errors": { "delivery_address": "Unknown at the wholesaler" } }A check that needs nothing but the answer and the run’s values can be an
expression instead: Or an expression, written bare over the same $start,
giving back the same verdict. It runs at
once and calls nobody:
$start->answer->quantity <= $start->stock ? ["valid" => true] : ["valid" => false, "errors" => ["quantity" => "Only " . $start->stock . " in stock"]]{ "valid": true } lets the answer through to the run. Otherwise the page keeps
the person’s answer, shows message above the form and each error under the
field it names, and the form stays open for them to correct it and send again.
Name a field in a list of rows by its position, such as lines.0.code.
When the check cannot give a verdict, because it failed, took too long or ended on something else, the answer is refused too: the page says the answer could not be checked and asks the person to try again. Only an answer the check passed reaches the run.
Working values out while the person answers
Section titled “Working values out while the person answers”Work out while answering, on the same tab (x-hooks in the form), runs a
flow or an expression while the person is on the page, to fill fields in for
them.
Each hook says when it runs:
-
Fields change runs once every field it names has a value, and again whenever one of them changes: a postcode and a house number to the street and the city, a quantity to the line’s total. It receives each field as
$start->name, and each value under Give it as$start->nametoo. It ends on what to fill in and what is wrong:{ "fill": { "street": "Dorpsstraat", "city": "Ede" }, "errors": { "house_number": "No such number on this street" } }fillsets fields beside the ones it names, in the same row for fields in a list of rows (name them by path, such aslines.quantity, and the hook runs for each row). An error shows under the field it names. A field set to Show it, do not ask for it keeps what the hook gave, and is worked out again when the person sends, so a total always matches the quantity sent. If that last run fails or finds an error, the answer is not sent and the person can try again. -
The link is opened runs when the person opens the link, for a value or a list of choices fresher than when the link was sent, such as today’s stock. On a form that starts a run it is The form is opened, and runs as a portal’s form appears, or as a button’s form or the Run box opens:
{ "fill": { "stock": "3 in stock" }, "choices": { "size": ["M", "L"] } }fillnames fields at the top of the form, andchoicesreplaces the choices of the field it names, which the answer is then held to. A flow gets 5 seconds. When it fails or takes longer, the form opens as it was sent.
While a search, a hook or a check runs, the page shows that it is busy and the send button cannot be pressed twice. On the run page, the waiting node lists the last checks with what each said, and how many searches and hook runs failed and why. A run that a form started lists the same on its Start row.
Which version they run
Section titled “Which version they run”A link runs the searches, hooks and check of the run that sent it. A portal’s form, a button’s form and a table’s button run the published version’s, the version the run they start executes, so an edit to them is not live until you publish the flow. Run by hand runs your draft’s, because it shows your draft’s form.
What a search, a hook or a check may do
Section titled “What a search, a hook or a check may do”A search runs each time the person pauses in typing, a hook each time its fields change, and a check each time the person presses send. So the flow it calls may look things up, and may not act:
- It may not send a message, change your workspace’s data or start a run. A flow with an email node, a node that writes or deletes in a table or a key-value store, or a node that starts another flow is refused before any of its nodes runs, and the Form node shows the error where you set the search, hook or check. Do that work in the run, after the answer is in.
- A call that changes something in another system, or a model call, is allowed, and the Form node warns that it happens on every search, change or send. A search API is often a POST, so this is not refused.
- Only a few run at once: two per workspace and four across Publicus. One more is not queued. The search offers nothing, and a check asks the person to try again, so the form stays open.
- On a portal anyone can open, a flow runs for nobody. A search, a hook or a check there needs an expression or a table, and publishing refuses a form block whose form uses a flow for one. See Portals.
- The time limit holds inside the flow’s own calls. A call to an API gets no more than what is left of the 10 seconds for a search or a hook on changed fields, the 20 for a check, or the 5 when the link opens, and it is not tried again once the time is up.
- A search of more than 200 characters searches nothing.
When the node asks a person during a run and a field asks for a file or a
signature, set Where files go (uploadStoreId, under More settings) to
the file store they are kept in. The run then receives a reference to the stored file, not the file itself.
Without a store, the answer is refused and the person is told the form cannot
take files yet, so set it before the link goes out. The node warns you when a
field asks for a file and no store is set. A published page keeps its files in
the store its form block names.
Group fields in sections or tabs, or ask them a step at a time with two or more steps. Drag an item’s right edge, or pick its width, to put fields side by side.
actions replaces the single send button with named buttons, so “Approve” and
“Reject” are the answer rather than a field inside it. They are used only when
the node interrupts a run.
Nothing is published for you
Section titled “Nothing is published for you”A form arrives unpublished, and so does the portal it lives on. Wiring a node on a canvas is not consent to put a form on the public internet; publishing is a separate act you take in the panel.
With no portal chosen, the form lives on your workspace’s Forms portal, and its links show that portal’s look and logo. See Style the Forms portal. When saving a Form node is what creates that portal, the notifications bell tells you, with a link to it.
The settings of a node wired as a page say where its page is, above the form: the portal and the page, for example “On “Forms”, the workspace’s portal made for forms, page “Bestelling”.”, then whether visitors can open it. While a publish waits, the line says which one, such as “The page is a draft, so nobody sees it until it is published.”, and offers Publish the page or Publish the portal beside Open the page. Both open in a new tab. The line describes the node as it was last saved: a node you have not saved yet says which portal its page goes on once it is saved. An ask or a tool Form shows no line, since it has no page.
Unwiring the node unpublishes the page rather than deleting it, so the submissions it has already collected stay where they are.
Switching a form page off
Section titled “Switching a form page off”A form wired as a page is a trigger, and like every trigger it arrives switched off. Publishing its page switches it on, since publishing is the moment you decide to take answers. The publish confirmation says so before you confirm, for example “Publishing switches on the form of “Sign up”, so it starts taking answers.” When you publish a portal, the line shows under each ticked page that would switch a form on.
To stop taking answers without taking the page down, click the node’s badge on the canvas and turn Active off. Visitors then see “This form is not taking answers at the moment.” in place of the form, and nothing they send starts a run. Portal buttons that start this flow are hidden from their pages until you switch it back on, and a visitor who presses one already on screen is told it is not available. A table’s own buttons still work for people in your workspace. Turn Active back on to open the form again.
Publishing later changes to the same page keeps the switch where you left it. Only a publish that puts the form in front of visitors for the first time, or again after the page was offline, switches it on. Undoing a publish never changes it.
The ask role
Section titled “The ask role”When an upstream node runs into this one, the run mints a single-use link, sends it, and suspends until it comes back. Resuming is the same machinery an Await node uses, so a run can wait for days without holding anything open.
- Opening the link spends nothing. A corporate mail gateway fetches every URL in a message before a human sees it, so only the submission consumes the link.
- The page repeats the email’s
messageunder the title, as it was sent, so a person who opens the link from somewhere else still reads why they were asked. It is worked out once, when the link is sent: a later change to the node or to the run’s data does not change it. - A closed link says which of four things happened: already filled in, expired, withdrawn, or never valid. “No longer available” is what a broken deployment says, and someone who has just been asked to sign something needs better than that.
- A link works for 14 days unless you set Link works for (days). Set When
nobody answers (
timeoutNodeId) to carry on down another path when nobody answers; leave it empty and the run stops there. - One question per run, so not inside a loop. A form that asks can’t sit inside a loop’s body: every pass through a loop is the same run, so it would ask once and the later items would get no question of their own. The editor refuses that connection. Ask once before or after the loop, or let an Agent in the loop ask through the form as a tool, which asks once per call.
- A lost link can be sent again. Open the run: the step it is waiting at shows whether the link reached anybody and when it expires, with Send a new link. The same person gets a new link to the same question, by the same route, with the same deadline, and the link sent earlier stops working. This works for a form on the chain; a question an Agent asked cannot be sent again, because the agent chose who to ask at the time.
- Who may answer is yours to choose. Set Who may answer (
whoMayAnswer) to Anyone with the link, the default, or Workspace members. See Who may answer below. - A test from the AI builder emails the link to you. When the AI builder tests a flow from its chat, the link goes to you instead of Email the link to, and the mail opens with a line, in the portal’s language, saying whom it would have reached. A run you start yourself sends it to the real recipient.
- Each run waits for its own answer. Several runs can wait at the same node,
each with its own link, and an answer or an expiry resumes only the run it
belongs to. A flow started by an Email trigger
with
withoutOverlappingon is the exception: while one run waits, the next message is skipped rather than starting a second run.
After the person sends it
Section titled “After the person sends it”The page thanks them with Confirmation. In the ask role the thanks may read
the run, like the email’s line: Order {{ $prev->reference }} is checked now.
It is worked out when the link is sent.
To show them what the run did with their answer, write After the run
(resultMessage). The page then shows a progress bar under the thanks while
the run carries on, and when the run finishes, or stops to wait for something
else, it shows your message. The message is worked out at that moment, so it can
read a node that runs after the form:
Order {{ $workflow->node('Send to ERP')->number }} is in the ERP.- Only the page the answer was sent from shows it. Opening the link again says the form has already been answered.
- The page waits up to a minute. A run that takes longer goes on without it, and the page says so.
- A run that fails shows a plain sentence, never its error. Look at the run to see what happened.
- Leave After the run empty and the page shows the thanks alone, as before.
Links after sending (links) puts up to five links under the thanks, for
example back to the portal page with the orders and to the conversation the
order came from. Each has a label and an address, and either may read the run,
worked out when the link is sent: {{ $start->conversation_url }}. An address
that does not come out starting https:// or http:// is left out. On a
published portal, the logo at the top of the page also leads to the portal’s
home page.
These three are frozen with the question, like the rest of the form: a link sent before you set them shows the thanks it was sent with.
Who may answer
Section titled “Who may answer”Anyone with the link (anyone, the default): whoever opens the link can
answer it once, without signing in, and the answer does not say who answered.
Use it for a customer, a supplier, or a tablet on a site.
Workspace members (members): only someone signed in to Publicus who is a
member of this workspace can answer. Someone else who opens the link sees a page
asking them to sign in with their Publicus account, and nothing of the question:
not its title, and not what the run filled in. After signing in they come
straight back to the form. Someone signed in with an account that is not a
member is told which account they are using, and can switch. The emailed link
says they will be asked to sign in, and the output names the member who
answered (answeredBy).
The run keeps the setting it had when it sent the link: changing it on the node does not change who may answer a link already sent.
Sending the link somewhere other than email
Section titled “Sending the link somewhere other than email”Wire the Send via handle into a Discord, Slack, Telegram or REST Request node’s input, and that node delivers the link instead of email alone. The edge runs from the form to the sender: the form hands the sender the link.
The sender reads the link as $prev:
{{ $prev->url }}{{ $prev->qrPngUrl }}The delivery node stays off the main chain: it sends the link and is not executed again as a step. A form has one Send via edge, because each place a link is posted changes who can answer it. On a form only workspace members answer, that node can lead to more (below).
What the sender returned comes back with the answer, as
formRequest.delivery: the message a Slack or Discord node posted, or the
response of the REST Request that opened a ticket. A node after the form can use
it to close that ticket or edit that message, for example
$prev->formRequest->delivery->id. It is there only when the sender delivered
the link, and any copy of the link inside it is masked.
Sending the link through several nodes
Section titled “Sending the link through several nodes”On a form that only Workspace members may answer (Who may answer), the node on Send via can carry on into a short chain: wire its output into the next node’s input, up to five nodes in all. For example, keep the link on the order’s row with Table Store Update, so a portal page can show an open the form link beside each order, then post the same link in the customer’s CRM conversation with a REST Request.
The nodes run one after the other while the link is sent, and none of them runs again as a step of the flow:
- The first node reads the link as
$prev. Each later node reads the node before it as$prev. - Every node reads the link as
$workflow->node('Review the order')->url, with your form node’s name, and reads an earlier node of the chain the same way. - Each node has one next node, and finishes on its own: no agent, no branching, no paging through results and nothing that waits.
- The link counts as sent once a node that posts a message or calls an outside system has run. When a node fails, the nodes after it do not run, the run page says where it stopped, and the run keeps waiting for the answer.
formRequest.deliveryis what the chain’s last node returned.
A form that anyone with the link may answer keeps one node on Send via: there the link alone answers the form, and every node of a chain would hold it. If you switch Who may answer back to Anyone with the link, nothing is sent through the chain and the run page says why. The chain runs only when the form interrupts a run, not when an agent asks through it.
Answering from the chat message
Section titled “Answering from the chat message”When the sender is a Discord or Slack node posting as one of your workspace’s bots (its Bot field), the form’s Actions appear as buttons under the message, beside the link. Pressing one answers the form, as the same button on the page would, and the run carries on down that button’s branch. Only the person who pressed sees the reply (“You chose “Done”.”), and the message’s buttons give way to what was chosen and by whom.
The buttons appear only when a press can be the whole answer:
- Every required field already has a value, from its default or from
prefill. A button carries no typed answer, so a form that still needs one is answered through the link. - Up to 8 buttons, each label up to 75 characters.
- A new message, sent as the bot, while its connection is on. Not through a webhook URL or a Slack token of the node’s own, not when the node edits a message it posted earlier, and not on a Slack message with files.
Otherwise the message carries the link alone, which works as always, and the form’s settings show a warning saying why. Who may answer applies to a press too: under Workspace members, only someone whose chat account is linked to a member of this workspace (in the AI builder settings, Use from a chat app) can answer from the chat, and anyone else is told so. A press counts only on the message the buttons were posted on: a link sent again moves the buttons to the new message.
Where you post the link decides who can answer. Under Anyone with the
link, the link is the only credential: whoever holds it can open the form and
answer once, without signing in, and the answer records what was chosen, never
who chose it (a press of a button in the chat records the chat account that
pressed it). Mailed to one address or sent to one person, that is close to
asking that person. Posted to a channel, it is asking everybody in the channel,
and the first press of a button answers for all of them. Teams always posts to a
channel, and so do Discord and Slack through a webhook or a bot in a channel. A
Discord bot sending to a user id, a Slack bot sending to a user id (U…), a
Telegram private chat or a WhatsApp number reach one person.
When a form open to anyone with the link posts it to a channel, the flow’s readiness check warns about it. If only your colleagues should answer, set Who may answer to Workspace members: anyone in the channel can still open the link, but only a member who signs in can answer, and the answer names them.
A failed send does not fail the run: the run is waiting on the request, not on
the message. It is not silent either. The workspace owners get a notification
naming the flow, the node and the run (never the link), and once the link
expires the node’s output says "delivered": false, so a timeout branch can
tell a link that never arrived from a question nobody answered. Nobody can be
told the address afterwards: only the link itself carries it.
The same happens when the link has nowhere to go at all: no recipient, and
nothing on Send via, or a node there that sends nothing (a Transformer, say).
The flow’s readiness check warns about that before it ever runs.
You can see on the run’s page what was sent. The Form node’s entry (the agent’s, when an agent asked) lists the mail under Sent, with its recipient, subject and body, the link masked. While the Form node waits, Waiting for an answer says whom the link was mailed to and which node on Send via sent it. The address is kept for 180 days, as for every mail your workspace sends, and Traffic lists the mail too.
When an agent asks through this node and nothing delivered the link, the question is withdrawn and the agent is told, rather than left waiting.
Output
Section titled “Output”As a page, a submission starts a run, and the answers are the run’s start
data: every node reads a field as $start->name, exactly as it would any other
trigger’s payload.
As an interruption, it emits the answers under answer, with the button
that was pressed and the link that was sent:
{ "timedOut": false, "chosen": "approve", "answer": { "comment": "Looks right to me." }, "answeredAt": "2026-09-04T10:12:00+00:00", "answeredBy": null, "formRequest": { "requestId": "01K3...", "expiresAt": "2026-09-11T09:00:00+00:00", "url": "https://...", "qrUrl": "https://...", "qrPngUrl": "https://...", "delivered": true }}The next node reads a field as $prev->answer->comment, and any later node as
$workflow->node('Approve this order')->answer->comment. chosen is the value of the
button pressed, or null on a form with only a send button. answeredBy is the
member who answered a form set to Workspace members, as
{ "id": "...", "name": "Grace Hopper" }, and null otherwise. A button pressed
in a chat message adds the chat account that pressed it, as
{ "id": "...", "name": "Grace Hopper", "chatAccount": "discord:7712..." }; when
that account is linked to no member, id is null and name is the name the
chat app gave, if any.
timedOut is always present and is what a downstream Switch
should branch on: it is the difference between “they said no” and “nobody
answered”. On a timeout, formRequest.delivered then says whether the link
ever reached anybody.
Worked example
Section titled “Worked example”Holding a run until somebody signs off:
- Wire the upstream node’s output into this node’s input handle.
- Title:
Approve this order - Form: add a Notes field for the comment you want back.
- Decision buttons:
ApproveandReject. - Email the link to:
{{ $prev->owner->email }} - When nobody answers, under More settings: a node that escalates, so a silent week is not a stuck run.
- Wire the output into a Switch that routes on
{{ $prev->timedOut }}first, then on{{ $prev->chosen }}.
Limitations
Section titled “Limitations”- One form is one page. A multi-step questionnaire is several nodes.
- A node wired as a page and as an interruption at the same time is refused.
- Send via takes one node on a form anyone with the link may answer, and a chain of up to five on a form only workspace members answer.
- As an agent tool the node holds the form: the agent chooses when to ask and supplies only what you left empty. It cannot author the fields, because those are your workspace’s contract with the person answering.
- As an agent tool with a Send via node wired and no
recipient, the link goes through that node alone: the agent is not asked for an address, and one it offers anyway is ignored. Setrecipientas well to email it too. - A Send via node that you pinned to always ask for approval makes the agent’s question ask for approval too, in every approval mode.
- A lookup’s search, a hook and the check run while the person waits, so their flows must be a straight line of nodes that finish on their own: no agent, no branching, no paging through results and nothing that waits for a signal. A search stops after 10 seconds, a hook on changed fields after 10, a hook when the form is opened after 5 and a check after 20. One link, one portal visitor or one member of your workspace searches at most 60 times, runs the hooks on changed fields at most 60 times, opens a form with its hook at most 10 times and checks at most 10 times a minute, and a search shows at most 50 choices. A send works out at most 50 hooks again.
- A table can be searched by a lookup only, not used by a hook or the check.
- A table that keeps each customer’s rows apart (it has a scope column) must be narrowed by that column to a value under Give the search, never to the text typed or a field the person fills in: otherwise anybody with the link could search any customer’s rows. The node refuses it until it is.
- A hook fills fields; filling one does not run another hook that waits on it.
- A search or check flow reads what it is given as its own
$start, as it does when you run it on its own. To combine what several of its nodes found, read each with$workflow->node('Node name'). - An expression that searches, works out or checks reads
$startand nothing else: give it what it needs from the run under Give the search, Give it or Give the check. - The node warns you when a search, a hook or a check cannot work: an expression that does not compile, a flow with a node that cannot run while the person waits, a table without the columns it names, or a hook on fields the form does not have.
- A lookup field, Work out while answering and Check the answer with work only on a link sent while a run waits. A published page has no run to search or check as part of.
Related
Section titled “Related”- Await: wait for a signal rather than for a person.
- Needs you: where a form nobody has filled in yet is listed, with the run that sent it.
- Approvals, policy and grants: approving an agent’s actions, which is a different thing from asking a customer a question.
- Switch: route on the answer.
- Triggers and arming: how a page-wired form starts runs.