Skip to content

Build a dialogue and put it on a button, step by step

Turn "fill these in, then do this" into a short popup that asks only what is needed, the same way every time, from one button on the record. In this guide you build one on the matter, learn the rest from a built-in dialogue, and wire it to the matter's ribbon.

15 steps·9 min read·Automation

Ask a few questions, then run one thing, the same way every time.

What a dialogue is

  • A popup of one to six tabs, opened from a ribbon button on a record, ending in one confirm button that runs one thing.
  • A tab asks the record's own fields and your own questions (text, number, date, yes/no, choice, lookup, a table of rows, a file), or shows questions that a check made for it.
  • The ending runs an API message, an on-demand workflow, a custom action, or simply saves the record's fields.
  • Every input that shows is required. A rule (Shows when) hides what does not apply, and a hidden input is never sent.
  • Designed in Builder → Dialogues; put on a record in Builder → Ribbons.

Good to know

  • A button opens only a Published dialogue. A Draft, or a key that does not exist, shows "Dialogue doesn't exist".
  • Seating an agent (Coin, Matte or Nash) is optional. Each agent reply is a paid model call, and an agent never confirms for the person.
  • The thing the dialogue runs still checks its own rules and the person's access. A button that is shown is not a permission.
  • No questions to ask? A plain ribbon button that runs a message is lighter. A process with several steps and no questions is a workflow.

Before you start

  • You need the Dialogues and Ribbons areas of the Builder: Global Administrators have them.
  • We build Court and referral details: opened on a matter, it asks whether the case is filed, then for its case number, docket number and court, then who referred the client, and saves those fields on the matter. It runs nothing else, so it is the simplest kind of dialogue there is.
  • Along the way we open Convert Lead, a built-in dialogue, to show the parts a simple dialogue does not use: choices, rules that show a question, and a check that runs when a tab opens.

Part 1. Create the dialogue and say where it opens

1Open Builder → Dialogues

Every dialogue is a card: its name, its key (the name a button uses to open it), its number, how many tabs (pages) and questions it has, the table it opens on, and its status, Draft or Published. The built-in ones (Convert Lead, Find Deadlines, New filing) are here too; open any of them to learn from it.

New dialogue creates an empty Draft at once and opens it. From a template creates a Draft copy of a ready-made design (a new matter from an email) to edit. Its key (new_dialogue the first time) is set at that moment and shows under the name; a button picks the dialogue from a list, so you never type the key. For this guide, press New dialogue.

Build a dialogue and put it on a button, step 1: Open Builder → Dialogues (Creates an empty draft; Or a copy of a template; Find one by name or key)
1Creates an empty draft2Or a copy of a template3Find one by name or key

2Name it, then the dialogue panel: what it is for, where it opens, who helps

Click the name at the top (New dialogue) and type the real one: Court and referral details. Under it sit the key and the dialogue's number.

On the left, The dialogue holds the settings for the whole popup:

  • Description: what it is for, in a sentence. An agent works from these words, so write at least 40 characters.
  • Opens on: the table (here matter). A dialogue that saves fields names exactly one table.
  • Brand: the popup's colour and name: Plain, or an agent (Coin, Matte, Nash).
  • Runs in memory: off (the default) keeps a run record for every opening, on the record's timeline. Turn it on only when nothing needs that record: then nothing is written until the end.
  • An agent helps: seats an agent beside the questions. It can read the record and fill in answers, but each reply is a paid model call. Leave it off for a simple form like this one.
Build a dialogue and put it on a button, step 2: Name it, then the dialogue panel: what it is for, where it opens, who helps (Click to rename; The table it opens on; Off: keep a run record; Off: no paid agent)
1Click to rename2The table it opens on3Off: keep a run record4Off: no paid agent

Part 2. Design the tabs and what each one asks

A dialogue is one to six tabs. The person goes through them with Proceed, one at a time, and ends on a review page with one confirm button. A tab asks the record's own fields and your own questions, or shows questions that a check made for it. Every input that shows is required; a hidden one is never sent.

3Tab 1: name it and list the record's fields it asks

The tabs sit in a row at the top; click one to edit it, + Tab adds the next. For each tab:

  • Tab title: the words in the popup (The court). What this tab is for is for an agent; Intro is the line above the questions.
  • Sort: the order, a whole number from 0 to 100. Tabs run in this order.
  • Generated Q&A: leave it off. Off, the tab shows the fields and questions you list; on, its questions come from a check (see step 7).
  • Fields from the record: the columns to ask, by their names, separated by commas. Each is asked in its own kind: a lookup as a search box, a yes/no as a switch. Codossier Office gives each listed field its place in the order when you save.
Build a dialogue and put it on a button, step 3: Tab 1: name it and list the record's fields it asks (Click a tab to edit it; Add a tab; Off: your fields and questions; The record's fields)
1Click a tab to edit it2Add a tab3Off: your fields and questions4The record's fields

4Your own question: a yes/no that opens the rest

Press + Input to add a question of your own. Write it as you would ask it (Has the case been filed in court?), then:

  • Answer kind: the narrowest that fits. Yes / no here; also single line or several lines of text, whole or decimal number, date, date and time, choice, lookup (people, companies, any table), a table of rows, or a file.
  • Key: the answer's name, used by rules and by the ending (in_court).
  • Fills the field of matter: pick a field to save the answer on the record, or leave Not a field: the answer then only steers the dialogue.
  • Shows when: empty means always. A shown question is always required.

Grey text in an empty box is only an example of what to write there, not a setting.

Build a dialogue and put it on a button, step 4: Your own question: a yes/no that opens the rest (The question, in your words; Its kind; Its key; Add a question)
1The question, in your words2Its kind3Its key4Add a question

5Show the court fields only after a Yes

The box The fields' own words, sort and rule gives each listed field the office's own label (ask), a line under it (why), its place among the questions (sort) and a show_when rule. Here the three court fields carry the rule answers.in_court is true: they appear when the person answers Yes and stay hidden (and are not saved) otherwise. Rules read earlier answers only, and a hidden input is never required.

Tab 2, Referral, lists two fields with no rule: lead_source_id and referred_by_account_id.

Build a dialogue and put it on a button, step 5: Show the court fields only after a Yes (Labels, order and rules)
1Labels, order and rules

6Learn from Convert Lead: a choice that shows the next question

Open Convert Lead and its tab 2. Contact. The first question is a Choice with three values, written as new = Create new, existing = Select existing, none = None: the value the rules and the ending use, then the words the person sees. The second question, a lookup on contacts, has Shows when answers.contact_mode equals existing: it appears only when the person picks Select existing. This is how a dialogue makes something optional: a choice or a yes/no that shows it.

Build a dialogue and put it on a button, step 6: Learn from Convert Lead: a choice that shows the next question (The tab; A choice; Value = words shown; Shown only for Select existing)
1The tab2A choice3Value = words shown4Shown only for Select existing

7A check on a tab: Convert Lead reads the lead as it opens

Tab 1. What we found turns on This tab runs a target. A target is an API message, a custom action or a workflow that answers whether things are ready:

  • It runs: As the tab opens, or when the person presses Proceed.
  • Words under the spinner: what the person reads while it works (Reading the lead).
  • The target: here the message LeadConvertPreview. Gives lists what it answers; later tabs start from it, as {tabs.found.output.contact.mode} does for the contact choice.
  • Note: say what it costs, when it costs something.
Build a dialogue and put it on a button, step 7: A check on a tab: Convert Lead reads the lead as it opens (Run a check here; When it runs; What it runs; What it answers)
1Run a check here2When it runs3What it runs4What it answers

Part 3. Choose what the ending runs, then publish

8Confirm: the button and what the ending runs

Back on your dialogue, the Confirm panel sets the ending:

  • Button: its label (Save the details). While it runs: the words under the spinner.
  • It runs: API message, Workflow (on demand), Custom action, or Update the record (the bound fields). Pick the last one here: Confirm saves the fields the tabs asked, as the person, through the matter's own rules.

The ending never runs by itself: the person presses the button on the review page.

Build a dialogue and put it on a button, step 8: Confirm: the button and what the ending runs (The button's label; Save the fields)
1The button's label2Save the fields

9An ending that runs a message: tokens hand it the answers

In Convert Lead the ending is the API message LeadConvert. Under it, Takes and Gives list the message's own inputs and outputs (green: an input the dialogue already fills). The inputs box maps each input to an answer with tokens: {answers.contact_mode} for one answer, {answers} for all of them, {record.id} for the record it opened on, {execution.id} for the run. Pass every answer writes the box for you.

Build a dialogue and put it on a button, step 9: An ending that runs a message: tokens hand it the answers (An API message; What it needs; Answers as inputs; Fill the box for you)
1An API message2What it needs3Answers as inputs4Fill the box for you

10Check it, save it, publish it

The badge says Ready and the panel Ready to publish when the server finds nothing wrong; otherwise it lists each problem in words. Save keeps the Draft. Publish checks the design once more and makes it live: a button opens only a Published dialogue (a Draft shows "Dialogue doesn't exist"). Runs lists every opening that kept a run record.

Build a dialogue and put it on a button, step 10: Check it, save it, publish it (Nothing to fix; Keep the draft; Make it live; Every opening)
1Nothing to fix2Keep the draft3Make it live4Every opening

Part 4. Put it on a button, and see it open

11Builder → Ribbons: open the Matter ribbon and add a button

In Builder → Ribbons, open the table's ribbon (Matter). The strip shows the ribbon exactly as the form will. Click + Add button, type the label (Court details) and press Enter. The new button is selected below the strip: pick an Icon, tick divider before it to start a group, and keep What it is on A button. The badge Unsaved says nothing has changed for anyone yet.

Build a dialogue and put it on a button, step 11: Builder → Ribbons: open the Matter ribbon and add a button (Type a label, Enter; The new button, selected; Pick its icon; Not live yet)
1Type a label, Enter2The new button, selected3Pick its icon4Not live yet

12When clicked: Open a dialogue

When clicked lists what a button can do: run an API message or a custom action, call a web service from the server, open a page, open a dialogue, approve or reject an approval, open Kuztom or an agent, or open a Coin skill. Pick Open a dialogue.

Build a dialogue and put it on a button, step 12: When clicked: Open a dialogue (Open a dialogue)
1Open a dialogue

13Pick the dialogue, then Save the ribbon

Dialogue lists every dialogue with its key and status; pick yours. Optional settings:

  • Agent start: words the dialogue's agent acts on as it opens. Each start is a paid model call; leave it empty for a dialogue with no agent.
  • Show when: a rule on the record, for example only while the court case number is empty. With no rule the button always shows.
  • Ask first and When done: a question before it runs, a message after.

Then press Save: the button reaches open forms within about 30 seconds. (We stop here, so this button never goes live.)

Build a dialogue and put it on a button, step 13: Pick the dialogue, then Save the ribbon (Your dialogue; Optional: when it shows; Then save the ribbon)
1Your dialogue2Optional: when it shows3Then save the ribbon

14On the matter: the button opens the dialogue

Once the ribbon is saved, open a matter: the new button sits in the ribbon, and when the strip is full the last buttons fold into ⋯. The built-in Find Deadlines button is made exactly this way: it opens the dialogue find-deadlines on this matter.

Build a dialogue and put it on a button, step 14: On the matter: the button opens the dialogue (More buttons; Opens its dialogue)
1More buttons2Opens its dialogue

15The dialogue as the person sees it

The popup shows the step and the tab's purpose, each shown input with a red star (required), and one forward button. A one-tab dialogue shows its confirm button straight away (Find Deadlines); with two or more tabs the person presses Proceed and ends on a review page. Cancel closes it. Here Matte is seated beside it: the words wait in the box until the person sends them, and the meter shows what Matte has spent (nothing yet).

Build a dialogue and put it on a button, step 15: The dialogue as the person sees it (Where you are; Required while shown; The ending's button; Agent cost so far)
1Where you are2Required while shown3The ending's button4Agent cost so far

What next