Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Pro
  5. currency

Field currency

Version: Pro.

Why this type

Inspector formatter, not plain number. Pro responsive like number and text. Separates money from counters and percents.

When to use

  • Price in custom section without MS3
  • Old and new price in promo
  • Donation amount field

Tips

Currency key in schema sets ISO or symbol config. Discount percent is number, not currency.

Similar types

  • number for non-money numeric
  • imask for formatted string without decimal type

Schema

json
{
  "name": "price",
  "type": "currency",
  "label": "Price",
  "currency": "RUB",
  "min": 0,
  "max": 999999,
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

Number or null.

Section data

Key price in the section data (number or null):

json
{
  "price": 1990.5
}

Chunk example

fenom
{if $price !== null}<span class="price">{$price} ₽</span>{/if}

Notes

Currency: currency. Limits same as number. Pro: responsive.

Common properties

For fields with name that are stored in the section data:

KeyTypeRoleCMP
tabstringGroup subtitle in the inspectoryes
width25–100Field width as % of the row (flex)yes
descriptionstringHint under the labelyes
defaultanyInitial value for a new sectionyes
activeboolfalse hides the field in the inspectoryes
requiredboolRequired on publish (draft still saves)yes

Pro (capability responsive): with responsive: true, the section data uses desktop, tablet, mobile keys instead of a scalar.

See fields overview.

See also