Skip to main content

CalcBuilder Tutorial

Calc Builder field type: Text

The Text field is a one-line input for names, references, e-mail addresses — and, with a mask, for formatted numbers and phone numbers.

A Text field with a placeholder.
A Text field with a placeholder.

Key settings

  • Placeholder and default value (Preferences).
  • Mask — pick a preset (Money #.##0,00, Phone (000) 000-0000, Percent ##0,00%…) or write your own; the visitor sees the value formatted as they type.
  • Validation (Advanced) — required, e-mail, regex.

In code

$variable is the raw string. For a masked money field, strip the formatting before maths: (float) str_replace(['.', ','], ['', '.'], $variable).

Part of the Form Fields reference. All types are demonstrated together in the Field Types Showcase.

...
CalcBuilder

Create dynamic calculators

Buy now!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!