Skip to main content
CalcBuilder logo

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.

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!