Build a custom block with Custom HTML
Before you start
Custom HTML is the component to reach for when the standard fields don’t fit the block you need: a status banner, a checklist, a small approval box. You write the HTML. Beezr fills in live values from the record and saves what people type. It is an expert tool, so test it with a few records before people use it.
Add the component
Section titled “Add the component”- In the Form builder, drag Custom HTML from the Components tab into a block.
- Click the cog icon on the card. The card first says “No template yet. Open settings to write the HTML.”
- Write the template in the HTML Template editor.
- Click Check Configuration, read the result, then click Done and Save the form.
After you write a template, the card says “Template ready. Open settings to edit it.”
Write the template
Section titled “Write the template”The panel offers three building blocks.
| You write | What happens |
|---|---|
$fieldName$ | Replaced with the current value of that field when the form loads. A read-only display |
$[expression] | Beezr evaluates the expression and puts the result into the HTML |
data-field="fieldName" on an input | What the person types is saved into that field when the form is saved |
A small example from the panel:
<p>Current status: $status$</p><label>Update status:</label><input type="text" data-field="status" />Write to another module
Section titled “Write to another module”Turn on Write captured inputs to another module under Cross-Module Write. The panel then asks for Target Module Configuration.
| Setting | What it is for |
|---|---|
| Target Module | The module that receives the captured input. Beezr creates or updates a record there |
| Relation Field | The field in the target module that stores this record’s key, the link back to this record |
| Parent key field | Which field of this record supplies the key. Leave Use Primary Key (default) in most cases |
| Prefill mappings | When no child record exists yet, copy these parent fields into the new child’s fields. + Add Mapping adds a pair |
How it behaves:
$fieldName$always reads from the parent, the record on the form.data-fieldinputs show the child record’s values when one exists. The first time, prefill mappings fill them.- When you add a new record, the child is saved right after the parent. When you edit an existing record, the child is saved with it.
For example, a Contracts form can hold a small “Legal review” box. The reviewer’s notes are captured into a Legal Reviews module, linked back to the contract by the relation field.
What should I know before I start?
Section titled “What should I know before I start?”- Check Configuration reports “No issues found — configuration looks good.” or a count of errors, warnings and notes. Run it before you save.
- Use
inputelements to capture data. Thedata-fieldname must match a real field. Check the spelling. - Same-module capture writes into the record on the form, and the field must exist in this module.
- Tokens are display only. The panel says
$fieldName$is replaced “at form load (read-only display)”. To let people change a value, add an input withdata-field.
Check yourself
What's next
Last checked