Skip to main content

CalcBuilder Tutorial

Calc Builder 6: the result (Exit Layout)

The Exit Layout screen is the template for the result block shown after the calculation.

Exit Layout editor

Placeholders

Print any input field or any variable produced by your PHP with ##name##. The Variables in Code button scans your PHP and lists what is available; the Input Fields drop-down lists the form fields.

<div class="cb-result p-3 border rounded">
  <div class="d-flex justify-content-between"><span>Tip (##tip_percent##%)</span><strong>##tip_amount## €</strong></div>
  <div class="d-flex justify-content-between"><span>Total</span><strong>##total## €</strong></div>
  <hr>
  <div class="d-flex justify-content-between"><span>Each of ##people##</span><strong>##per_person## €</strong></div>
</div>
  • Add new Result registers a named output so it appears in the helper lists and can be grouped in a section of the result.
  • Because a variable can hold HTML, you can print an entire table (##schedule##), a chart container, or a conditional message that your PHP built.
  • Unknown placeholders are removed, so a half-finished template fails safe.
...
List Manager

Build different lists for your site

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!