Roadie

Show a Custom HTML block action

Automation · 3 min read ·

Plays your own HTML and CSS in an HTML block or across the whole Stage. Learn its setup, options and use in Roadie Automation.

Show a Custom HTML block is the alert.html Automation action. Plays your own HTML and CSS in an HTML block or across the whole Stage.

Availability: Choose this action in a flow when its feature and required connections are available to your channel. Before you start: An HTML block on the Stage, or none: on Whole canvas, Roadie adds that block to your Stage the first time it is needed. It never draws inside an alert.

Options and starting values

The values below are what the editor starts with for a channel with no matching resources selected. They are starting values, not a guarantee that the step can run as shown. Required resource choices and trigger fields may change the starting values.

  • html — text; maximum 20000 characters; required; also checked by an action-specific rule; editor starts with `<div class="alert"> <strong>{heading}</strong> <span>{kicker}</span>

</div>`.

  • css — text; maximum 20000 characters; required; editor starts with `.alert { display: inline-grid; padding: 24px 32px; background: rgba(17, 23, 32, 0.9); color: #fff; font: 700 40px/1.2 sans-serif;

} .alert span { font-size: 24px; color: #f5b301; }`.

  • duration — one of object, object; required; editor starts with {"mode":"seconds","seconds":10}.
  • js — JavaScript; optional; up to 20,000 characters. It reads every fill-in as roadie.data["user"], and roadie.on("spotify.song", fn) calls fn each time the song changes. It can change only this block and fetch only from https sites.
  • libraries — up to 5 library addresses, from https only; optional.
  • Where it draws (target) — one of your Stage’s HTML blocks, or Whole canvas. A step saved to draw inside an alert now draws on the Whole canvas.

In a flow

Add Show a Custom HTML block after the event, command or timer that should cause it. Plays your own HTML and CSS in an HTML block or across the whole Stage.

For orientation, the editor starts with {"html":"<div class=\"alert\">\n <strong>{heading}</strong>\n <span>{kicker}</span>\n</div>","css":".alert {\n display: inline-grid;\n padding: 24px 32px;\n background: rgba(17, 23, 32, 0.9);\n color: #fff;\n font: 700 40px/1.2 sans-serif;\n}\n.alert span {\n font-size: 24px;\n color: #f5b301;\n}","duration":{"mode":"seconds","seconds":10}} in a blank channel. Complete any placeholder destination, resource or text before enabling the flow; passing the field schema alone does not prove this will run.

In tests default: New Show a Custom HTML block steps start at Apply. The trigger editor’s Run test currently applies every action regardless of this per-step default. Use a harmless flow when learning the Test panel; a test can make real changes.

It is not the alert: it waits its turn in the alert queue. Script tags, frames, forms and event handlers in the HTML are removed when you save. When a Basic alert (Beta Testers) also covers this event, both play.

Values for later steps

This action does not declare a named output for later steps.

If the step fails

The run log records the failed step and its reason. The step’s Stop the run if it fails setting decides whether later steps run. Missing connections, permissions, or required choices can prevent this step from completing.

Browse all actions · Use fill-ins