Skip to main content
CalcBuilder logo

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.
...
Support/development

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

Buy now!
...
Support/development 10 hours

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

Buy now!