Emberblocks

Search documentation

Search docs pages by title or description

Your apps
Browse documentation

Custom block

Data view

The custom block renders a card you design yourself in the Templates tab's visual designer: drag in text, field values, images, columns, badges, stat numbers, and action buttons, then place the block on a record page and it fills from the record being viewed.

Try it: Switch which Order record the page is showing; every formula in the card re-evaluates against that row.
Settings
Order card
Order #1042Shipped
Nordic Supply AB · 3 items · ordered by web
Total
€1,240.00
Example. A custom block on an Order record page, filled from a record-card template: a two-column layout with the Photo field on the left, a formula heading, a badge from the Status field, a text line joining Customer and Items, a stat number from Total, and two action buttons whose label is itself a formula.

How it works

  • Create a custom block template on the Templates tab. A template is bound to one table and one flavor — record card here — at creation; its fields and formulas resolve against that table.
  • Every dynamic text in the design is a formula over the bound table's row —IF([Shipped], "Delivered " & [Date], "In transit") — with the full Expression Assistant behind every text slot.
  • Drop a Custom block on a record page and pick the template. One template can back any number of blocks across views.

Design elements

SettingWhat it does
TextAny formula over the record, with size, weight, alignment, and theme color options.
Field valueOne field rendered with its full typed treatment — select colors, reference labels, images, dates.
ImageA picture from an image field or a URL formula, with fit, height, and rounding options.
ColumnsSide-by-side layout areas. Phones always stack to one column. Columns can't nest.
Action buttonRuns an action against the card's record — the label can itself be a formula.
BadgeA status chip from a field (select option colors apply) or a formula with a fixed tone.
Stat numberA big number derived from the record's own row.
Divider / SpacerVisual rhythm between sections.

Row-scoped formulas

Card formulas evaluate from the one loaded record, so they can't hop to related tables or aggregate (COUNT, SUM over other rows). Show related data with a filtered list block beside the card instead.

Like every block, this one also has the shared block settings: an optional title (which shows as a heading above the block) with a description under it, auto-height, conditional visibility, and role-based visibility, plus the source table and record-filter settings shared by all data blocks.