Skip to content

Expand an HTML or JSON field

Press Expand to edit HTML, JSON, or JavaScript in the code editor, with a preview for HTML.

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.

  1. Press Expand. The editor is loaded when you press it. Until it is ready, the line reads “Loading editor…”.
  2. The dialog title is Code editor. The editing pane is labelled Source.
  3. 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.
  4. Where the field offers it, Variable inserts a variable at the cursor.
  5. 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.
  6. 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 ​

ScreenField
A template, Message and ToastConfiguration (JSON) and Body (HTML & CSS)
A communication in HTML modeBody (HTML & CSS)
A template field whose type is HTMLThat field. Text, image, and URL fields have no Expand.
Email builder, a Text blockText. Preview shows the block.
Email builder, an HTML blockHTML
A flow step, Run JavaScriptJavaScript code to execute. The help reads “Runs on the customer’s page with full DOM access. Owners and Managers only.”
A flow step, Web HookBody and Additional HTTP headers. Both are JSON. WebHook URL has no Expand.
A flow step, Add points or Deduct pointsJavaScript 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 & diamondsJavaScript function. The help reads “Only used when the amount is calculated by a JavaScript function. Returns the amount to apply.”
An automation activity, Run JavaScriptJavaScript
Settings, Push, the project sectionThe 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 gatewaysThe web config JSON, and Service account JSON. The service account is masked.

Orbit Help Center