Skip to main content

CalcBuilder Tutorial

Calc Builder field type: Option List

The Option List is a single-choice drop-down. Each option has a label (shown) and a value (used in the calculation).

An Option List (single-choice drop-down).
An Option List (single-choice drop-down).

Key settings

  • Options (field → Preferences) — type them in as label / value pairs, paste a CSV, or pull them from a SQL query (Linked List SQL).
  • The first option can be a placeholder such as -- choose -- with an invalid value.

In code

$variable is the selected option’s value — e.g. if ($plan === 'prem') { $rate = 19; }.

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

...
Support/development 40 hours

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

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!