Skip to content
MyAppBuilder
StableGuide

Bindings

Every property of a component is either static — a value you type that never changes — or dynamic , a binding that is computed when the page runs: the current record's name, the signed-in user's email, a page parameter, a count of records, or a text template that mixes words and

Every property of a component is either static — a value you type that never changes — or dynamic, a binding that is computed when the page runs: the current record's name, the signed-in user's email, a page parameter, a count of records, or a text template that mixes words and placeholders. Bindings are what make one page work for every record and every visitor.

When to use

Make a property dynamic whenever its value depends on data or context: a heading that greets the user, a card title from the record, a button label that shows a count, a filter value from a search box, a navigation parameter from the clicked row.

Static vs dynamic in the inspector

Bindable properties show a ⚡ icon next to their label in the Content tab.

  1. Click ⚡ to switch the property to dynamic. The field becomes a template input prefilled with the current text.
  2. Either edit the template (Hello {{user.name}}) or open the data picker (⚡ next to the input) and choose a value such as Current record › Name.
  3. Click × to go back to a fixed value.

The Data tab, action parameters, filter values, conditions and navigation parameters use the same value or ⚡ control. See Data picker for every group it offers.

Kinds of dynamic values

KindExampleWhere it comes from
Current record fieldCurrent record › NameThe record of the surrounding list item, table row, detail view or form
Current userCurrent user › emailThe signed-in app user (id, email, name, role, isAuthenticated)
Current pageCurrent page › nameName, route or id of the page
Page parameter / query parameterPage parameters › idThe address (/:id, ?key=value)
App / page / component stateApp state › cart, Search box › valueState variables and component state
Form field, event, action resultEvent › record, Action results › last result idInside action lists
Database aggregateJobs (count)A count of an entity
API result, workflow resultAPI › WeatherIntegrations
Text template{{record.name}} — {{user.email}}Any combination of the above

Templates

A template is text with {{ … }} placeholders. Placeholders are simple dotted paths — no formulas or calculations:

Example
Hello {{user.name}}                 → Hello Anna
Job #{{record.number}} for {{record.customer_name}}
{{params.id}} · {{query.status}}    → page and query parameters
{{state.selectedLocation}}          → app state
{{pageState.tab}}                   → page state
{{form.email}} · {{event.value}} · {{result.id}}
{{component.cmp_123.value}}         → a component's state by id

Record placeholders use the field key (customer_email, not the label). Missing values render as empty text; lists are joined with commas.

Where bindings are evaluated

Display bindings are evaluated in the browser from data the server already filtered for the user. Queries, aggregates and server actions run on the server with the user's permissions. A binding can therefore never reveal data the role may not read.

Example: a personalised card list

Example
Cards bound to Quotes (Customer Email is Current user › email)
  Title:    ⚡ Current record › Number
  Subtitle: ⚡ template "Valid until {{record.valid_until}}"
  Badge:    ⚡ Current record › Status
Button "Open" (onClick) → Go to page Quote detail, :id = Current record › id

Common mistakes

  • Typing {{Customer Email}} with the label: use the key: {{record.customer_email}}.
  • Expecting arithmetic in templates: templates only substitute values; compute totals with aggregates or workflow Set values steps.
  • Using Current record outside a list or detail: there is no record in scope; bind the component's Data tab first or place it inside the list.
  • Binding a property that is not bindable: only properties with ⚡ accept dynamic values.

Related

Was this helpful?