Modula Modula documentation

Creating and editing

Dynamic fields

A dynamic field is a gap in a SmartText, filled in at insertion time: a first name, a reference, a date, a choice from a list. A single SmartText then serves a hundred different situations.

Adding a field Basic

The field buttons are in the editor toolbar: after the formatting buttons for a SmartText, under the title for a SmartMail. They are icons: hover them, their tooltip says what they add.

How to
  1. Put the cursor where you want it in the text.
  2. Click the field's button — text, list, date and time, selection, clipboard or cursor. The chip appears right away, its name selected.
  3. Type its name, then Enter or click elsewhere. Esc cancels, and removes a brand-new chip.

Meanwhile, the right-hand column shows the field's settings, and the chip follows them live. To edit a field, click its chip; a second click on the same chip closes its settings. A default name is suggested (“Text”, “Text 2”…).

ColourFields
BlueDate, time, time slot, stay
PurpleText, list
GreenSelection, clipboard
OrangeCursor
Good to know

In a SmartMail, the buttons act on the last field you clicked — recipient, copy, subject or body —, marked with a discreet border.

Text field Basic

The most common one: an input box in the insertion form. Give it a meaningful name — it's the label you'll see when filling it in.

Example

“Hello [First name], your case [Reference] is being processed.” On insertion, the form asks for the first name and the reference, then inserts the complete sentence.

One line or several, case Advanced

Two settings in a Text field's panel:

  • Allow several lines (ticked by default): the field is two lines high in the form, and Shift+Enter starts a new line in it. Unticked, the field fits on one line, and text pasted over several lines is joined up.
  • Case: the text can come out As typed, in UPPERCASE, in lowercase, with the First letter capitalised or with Capitalise Each Word. The form keeps what you typed; only the inserted text changes.
Example

The “Last name” field of a letter is set to UPPERCASE: Camille types “smith”, the letter shows “SMITH”.

If the field is empty Advanced

In a Text field's settings, the Advanced options tab holds If the field is empty:

ValueField left empty when inserting
Insert nothing (default)Neither the value nor its surrounding text; a line or bullet left with nothing is removed.
Required fieldThe form refuses to confirm while the field is empty. The chip carries a star.

A dot on the Advanced options tab shows that an option is set there. For a multiple-choice list: Insert nothing or Required field (at least one choice).

A field left empty never blocks inserting, unless it is required.

Surrounding text for a field Advanced

Some text can go with a field and disappear with it when it stays empty: “Reference: [Reference].” does not leave a lonely “Reference:”. While you edit the chip, <+ at the start and +> at the end add that text, before and after.

  • <+ offers to reuse the text before the field on the same line, selected: Enter takes it, typing replaces it, Esc changes nothing. +> does the same with the text after.
  • Adding surrounding text sets the field to Insert nothing when empty.
  • The settings' Result line shows both cases: Filled and Empty.
  • Fields concerned: Text, multiple-choice list, Selection, Clipboard. Dates have their own, in the Special tab (see Surrounding text, markers and your own templates): it is also typed in the chip, with a + between two values.

List field Basic

A drop-down menu in the form, with the choices you plan. The round button in front of a choice makes it the default choice, already selected when the form opens; clicking it again unticks it.

Example

“Deadline” list: 24 h, 48 h (default), 72 h. Most of the time, Enter is enough; when it's urgent, Camille picks 24 h.

A list has at least two choices. Enter in the last choice adds a new one.

Reordering the choices Advanced

Drag a choice by its handle, or use Alt+↑ and Alt+↓. Empty choices and duplicates (ignoring case and accents) are removed when you confirm.

Multiple-choice list Advanced

Tick Allow several choices in a list's panel: the form shows checkboxes instead of a menu, and the ticked choices are joined in the text, in the order of the list. Several choices can be ticked in advance.

Example

“Documents to provide” list: ID, proof of address, bank details. Camille ticks the first two; the text says “Please send us: ID and proof of address.”

How multiple choices appear Expert

How they appear in the textResult
In the sentence“A, B and C” — the Linking word (“and”, “or”…) can be set
Bulleted listOne bullet per choice — to be placed on its own line
One per lineOne choice per line, without a bullet

At least one choice (ticked by default) prevents confirming the form as long as nothing is ticked. Unticked, a list with no choice inserts nothing.

Date, time, date and time Basic

A date field opens empty in the form. In its settings, tick Pre-fill with the current date and time: it will open on the present moment, and Enter will be enough. Date fields created before version 2.1 stay pre-filled. Same principle for the time, and for date and time together.

Example

Pre-filled: “Call received on [Date] at [Time].” Camille triggers the SmartText, presses Enter: “Call received on 28/09/2026 at 14:30.”

A SmartText that contains only a date therefore opens the form too: that's intentional, so you can correct it.

A format of its own for a field Advanced

Dates follow the format chosen in Settings → Options, for your whole collection. A field can have its own: in its panel, Date, Time or Date and time tab, choose a format, or Custom format.

Example

For a formal letter, the “Date” field is set to the format that spells out the weekday: “Monday 28 September 2026”, while the rest of the collection writes 28/09/2026.

Time slot and date range Advanced

The date and time button opens a panel with four tabs: Date, Time, Date and time and Special. The last one offers ready-made templates:

TemplateThe form asks forExample result
Time slota day, a start time, an end timeon 30/09/2026 from 14:00 to 15:30
Date rangea start day, an end dayfrom 12/10/2026 to 16/10/2026
Appointmenta day and a timeon 30/09/2026 at 14:00

Surrounding text, markers and your own templates Expert

In the Special tab, the Surrounding text assembles the values into a sentence. Each marker in square brackets is replaced by an entered value:

MarkerValue
[date] · [time]the day · the time
[start-date] · [start-time]start date and time
[end-date] · [end-time]end date and time

The form asks for exactly the values of the markers present: on [date] from [start-time] to [end-time] asks for a day and two times. The format sets how each value is written; the surrounding text, the sentence — its words are never transformed.

Example

Surrounding text: from [start-date] at [start-time] to [end-date] at [end-time]. Result: “from 12/10/2026 at 09:00 to 16/10/2026 at 18:00”.

How to
  1. Edit an existing template, then Save template — Restore original goes back to the supplied template.
  2. Or create your own with New template….
Good to know

A template is only an editing shortcut: changing or deleting it doesn't change any field already inserted. A field that no template describes is shown as Custom.

Selection field Advanced

It takes the text you had selected on the page when you triggered the SmartText. If nothing was selected, it becomes an input box in the form, rather than leaving a gap.

Example

“Regarding your message: “[Selection]”, here is our answer…” Camille selects the customer's question, triggers the SmartText: the quote is already in place.

Good to know

To pick up several pieces from the page after the form has opened, use AutoCopy instead.

Case of the selection Expert

Like a Text field, the Selection field has a Case setting: a reference selected in lowercase can come out in UPPERCASE.

Clipboard field Advanced

It takes what you copied last. Modula only reads the clipboard if the SmartText contains this field, never otherwise; Chrome may ask for permission the first time.

Example

Camille copies a tracking number on the carrier's website, then types !track in her reply: the number is already in the text.

Cursor field Expert

It isn't a field to fill in: it marks where the cursor will be placed after insertion, instead of going to the end of the text. You pick up typing exactly where something needs completing.

Example

“Hello,

[Cursor]

Kind regards, Camille”. After insertion, the cursor waits between the greeting and the signature.

  • Only one cursor per SmartText; SmartTexts only (not in a SmartMail or in copy mode).
  • It has no panel: the button places it directly. Clicking its chip offers Information or Delete.
  • In code editors (CodeMirror, Monaco) and CKEditor 5, a single Ctrl+Z undoes both the insertion and the cursor move.

Same name, same field Basic

Two fields with the same name are one field: a single entry fills them all, with the same settings. Handy for repeating a first name in several places in a message.

Example

“Hello [First name], … See you soon [First name]!” The form asks for the first name only once.

When you type the name of an existing field in the panel, Modula says so and immediately takes over its settings.

Renaming or deleting a repeated field Expert

Editing a field that appears several times edits all its occurrences — a banner reminds you (“This field appears 3 times”). Two cases need your choice:

  • Renaming: Modula asks whether to apply the new name to this field only — it then separates completely from the group — or to the N fields in the group. If the new name already exists, the fields join it: a single entry for all of them.
  • Deleting: Delete this occurrence or Delete all N.

Two kinds for one name Expert

A name refers to a single field: you can't have a text “Delivery” and a date “Delivery” in the same SmartText. The panel refuses the name (“A field “Delivery” of another type already exists”): choose another one, such as “Delivery date”.

Settings not applied Basic

If you leave a field's panel without clicking Insert or Update — another chip, another button, Cancel, saving the item — Modula asks: Discard, Back to the field or Apply.

Moving a chip, the cursor around it Advanced

Grab a chip and drag it elsewhere in the text: it keeps its name and settings. With the keyboard, a chip behaves like a character: ← → step over it, Home and End go to the end of the line even when it starts or ends with a chip, and Backspace deletes it.