Skip to main content

CalcBuilder Tutorial

Calc Builder field type: Yes / No

Yes / No is a single check-box. Ticked returns Y, unticked returns an empty value.

A Yes / No check-box.
A Yes / No check-box.

In code

if ($newsletter === 'Y') {
    $discount = 5;
}

Use it for opt-ins, “include VAT”, “add insurance” and similar on/off switches.

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

...
Support/development

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

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!