Appearance
Expand sits under a box that holds HTML, JSON, or JavaScript. It opens Code editor. Apply writes the box you opened. It does not save the form.
Before you start
The button is on the fields listed below. A box that is read-only or disabled has Expand disabled, and the editor closes if the field becomes disabled while it is open.
- Press Expand. The editor is loaded when you press it. Until it is ready, the line reads “Loading editor…”.
- The dialog title is Code editor. The editing pane is labelled Source.
- HTML that is not a secret also shows Preview, beside Source. JSON shows “Valid JSON”, or “Invalid JSON. You can keep editing.” That line does not replace the form’s own check. Apply still writes invalid JSON into the box. JavaScript shows Source only.
- Where the field offers it, Variable inserts a variable at the cursor.
- Press Apply to put the draft into the box. Press Cancel to drop it. Escape, the Close button, and a press on the dim area around the dialog drop it too.
- If the editor cannot load, the line reads “Could not load the editor. You can keep using the plain editor.” Press Retry.
A masked secret stays a password until you press Show typed secret. Hide typed secret masks it again. A masked secret has no preview. A secret marked visible shows the draft as you type it.
Apply is the same word on a flow step and on an automation activity. On the flow step it is the step’s Apply. On the activity it is the activity’s Apply. Either one writes the field. The page’s Save is separate.
Where Expand is
| Screen | Field |
|---|---|
| A template, Message and Toast | Configuration (JSON) and Body (HTML & CSS) |
| A communication in HTML mode | Body (HTML & CSS) |
| A template field whose type is HTML | That field. Text, image, and URL fields have no Expand. |
| Email builder, a Text block | Text. Preview shows the block. |
| Email builder, an HTML block | HTML |
| A flow step, Run JavaScript | JavaScript code to execute. The help reads “Runs on the customer’s page with full DOM access. Owners and Managers only.” |
| A flow step, Web Hook | Body and Additional HTTP headers. Both are JSON. WebHook URL has no Expand. |
| A flow step, Add points or Deduct points | JavaScript function. The help reads “Saved, not run yet: the fixed number of points is what is applied.” |
| A flow step, Add gems & diamonds or Deduct gems & diamonds | JavaScript function. The help reads “Only used when the amount is calculated by a JavaScript function. Returns the amount to apply.” |
| An automation activity, Run JavaScript | JavaScript |
| Settings, Push, the project section | The web config JSON, and Service account. Service account is a visible secret. The hint says it is write-only: stored encrypted, never shown again. |
| Settings, Messaging gateways | The web config JSON, and Service account JSON. The service account is masked. |