Dynamic Inputs

All building block input fields accept dynamic inputs.

References to Variables and Tables

Example

  • "Hello {id: 123, name: "Profile name"}, I wanted to reach out because...."

References to Variables and Tables

Code in Inputs

Code in inputs is available in version 1.1.72 (not yet live).

Use ${...} for an expression and $${...} for a code block. Expressions insert the result of the expression. Code blocks run full code and must return a value to insert.

Examples

  • Using ${...} (expression) "This is my secret password stored locally: ${await zw.deviceStorage.get("password")}"

  • Using $${...} (code block) "This is my more elaborate input: $${ import axios from "axios"; // any import auto-installs locally const res = await axios.get("https://mydomain.com/my/api/url"); return res.data; }."

Code in Inputs

Spintax

Helps vary content on sites with anti-spam measures that check message or email uniqueness.

Example

  • "{ Hi | Hey | Howdy }! How { are you | are things going }?"

Spintax

Last updated

Was this helpful?