Visual forms
Besides the package’s forms, the client can create and edit forms from the editor, like in Elementor, without touching the HTML. There are three ways:
| Where | How it is created | What is saved |
|---|---|---|
“Form” block (builder-os/form) | From the block inserter or from the widget library. | The block’s form attribute. |
| A section’s “Form” item | Elements panel → Form and, once selected, “Edit as visual form”. | The section’s bosExtra['fb:<uid del form>']. |
Package form (<form data-bos-form>) | Select the form or any of its tags → “Edit as visual form”. | Same: bosExtra['fb:<uid del form>']. |
All three are rendered with the same engine: signed schema, submission, antispam, Turnstile, attachments, Messages, SMTP, automatic reply and per-form settings. They also work without JavaScript.
Content tab
- Fields (list): add, remove, duplicate and reorder (by dragging the ⋮⋮ handle or with ↑ ↓). Clicking a field on the canvas opens it in the list.
- Types: text, email, phone, number, URL, text area, select, radio, checkboxes, consent (GDPR consent), date, file (if there are allowed extensions in Home → Forms), hidden and text/HTML (notes, notices; supports links, bold and italic).
- Per field:
- label (and “hide the label,” which leaves it for screen readers);
- example text (placeholder; in the select it’s the text of the first empty option);
- required (for checkboxes: “at least one”);
- width per device: 100, 75, 66, 50, 33 or 25%. On tablet, “Equal” uses the desktop one; on mobile, by default, everything takes 100%;
- default value (for checkboxes and multiple select, comma-separated values);
- options (select, radio and checkboxes): one per line, or
valor|Etiquetato save a different value; - the field’s own error message (replaces BuilderOS’s validation ones);
- number: minimum, maximum and step; text area: rows; file: accepted types and “multiple files”;
- field name (
name): generated automatically from the label (nombre,tipo_de_carga…), unique and without reserved names. While the field is new it follows the label; afterward it stays fixed, because it’s the key in Messages, in the CSV and in the subject ({nombre}).
- Button: text, width (by text or full width) and alignment.
- Messages: success, error (when a field is missing) or redirect to a URL or to a package page (
gracias.html, in the visitor’s language).
Actions tab
Recipients, subject (with {campo}, {form}, {site}, {page} and {lang}), “Reply to” (the form’s email fields), save to Messages, automatic reply to the sender (subject and text in the page’s language) and success message per language.
- They’re the same settings as BuilderOS → Home → Forms: what you change in one place shows up in the other.
- They’re saved when you press “Save actions,” without reloading the page.
- Only an administrator can change them; everyone else sees them read-only.
- Direct links to Home → Forms and to the form’s Messages.
- Integrations panel: the same settings as Home → Forms → Integrations (saved with “Save integrations,” without reloading the page). An editor sees them read-only.
Style tab
By default, the form inherits the site’s look:
- labels, fields and options with the package’s typography and colors (
--color-*,--font-*,--radius-*), and neutral values if they’re missing; - if the package has a form, its classes are reused (label, field, select, text area, checkbox and button), so it looks the same as those in the design;
- the button carries the package’s button class and
.bos-btn, to which the Global design‘s button style is applied.
In Style you change only what you want to be different: labels (color, size, weight and font), fields (background, text, border, thickness, radius, padding, size and focus color), button (“the site’s” or “custom,” normal and hover colors, radius, padding, size and weight) and the gap between rows and columns.
Advanced tab
Form name, id (block only; settings and messages are saved with it), maximum width, “Package look” (if there are several) and each part’s CSS classes. In sections, “Back to the original form”.
Existing forms: “Edit as visual form”
When you select a form in a section (or one of its tags), the inspector shows the Form panel with the “Edit as visual form” button. When you press it:
- its fields are copied as they look, in the same order (a note between fields stays in place);
- the package’s classes are kept, separately:
- from the radio and checkbox options (pills, chips):
skin.choice; - from the group (
<fieldset>):skin.group; - from the consent:
skin.consent.
Before, the consent and the options shared a class. Forms converted earlier stay the same;
- from the radio and checkbox options (pills, chips):
- the form ends up selected and its editor open, even if it was converted from a tag (that node disappears when the visual form is rendered);
- a new field is added before the consent and the final texts (legal note), which close the form together with the button. A new consent, text or hidden field goes at the end.
- the id (
data-bos-form) is kept, and with it the settings and the messages; - texts that aren’t fields (legal note, notice) become text blocks with their class;
- the button’s icons and the package’s own JavaScript for that form aren’t kept;
- it works with any package. “Back to the original form” undoes it.
“Package look” (package_skin) also distinguishes option, group and consent.
Languages, versions, permissions and MCP
- Languages: when you create a page’s translation, visual forms switch to the target language: BuilderOS’s texts (Nombre → Name, Enviar → Send…) and whatever the package translates in
_forms._forms.<id>also supportslabels,errorsandsubmit. If a page is viewed in another language without duplicating it, it’s translated on the fly with the same rules. - Version history: the form is part of the block, so each version saves and restores it.
- Permissions by role:
- “Content only” only changes texts: labels, placeholders, options (their label), messages and button;
- “Content and sections” also changes fields and rules, but not the style;
- the server enforces it on save.
- MCP:
get_pageincludes in each blockformswith the id, the settings key and the fields (name, type, label, required, width, options…).
Conditional logic and conditional notice
Each visual form field has, at the end of its settings, Conditional logic: Show this field only if…, It is shown if these are met (All conditions or Any condition) and a list of conditions (Add condition / Delete) on earlier fields. Operators: eq | neq | contains | empty | notempty | gt | gte | lt | lte (aliases is, is_not, not_empty, >, <). On checkboxes, eq means “option checked.”
"logic": { "enabled": true, "match": "all", "conds": [ { "field": "<id o name de un campo anterior>", "op": "eq", "value": "empresa" } ] }- It’s saved with the field’s id, so it survives a name change. Rules that look at a later field or a file-type field,
gt/ltwith a non-numeric value and more than 10 conditions are discarded. - Shared evaluator with the wizards: PHP
Builder_OS_Conditions(includes/class-builder-os-conditions.php;matches()andgroup()are also used byBuilder_OS_Wizards::cond_matches()) and JSpublic/js/builder-os-conditions.js, which exposeswindow.BOSCond(match,group,apply,forms). It’s a dependency ofbuilder-os-wizardand loads deferred only if the page has a wizard or a form with rules. - Custom markup (package forms):
data-bos-if='{"match":"any","conds":[{"field":"tipo","op":"eq","value":"empresa"}]}'on the control or its wrapper; when rendering it becomesdata-show-if. Whatever isn’t met with the initial values comes out already withhiddenandaria-hidden="true", and its controls withdisabled data-logic-off(no CLS). The rule[data-show-if][hidden]{display:none!important}is inbuilder-os-forms.css. - Server (authority): the rules travel in the signed schema (
fields[name].if). On submit,Builder_OS_Conditions::hidden_fields()evaluates them in order with what was submitted (a hidden field counts as empty for the following ones). Hidden fields are excluded fromvalidate(): they’re not required, aren’t saved, and don’t go in the email or to the integrations. - Accessibility: when a field is hidden, its controls are
disabled;applyrepeats oninput,changeandresetand emits thebos:logicevent (detail.shown). - Conditional notice (Home → Forms → the form → Email notice):
routes: [ { field, op, value, to } ]setting (up to 10), sanitized byBuilder_OS_Forms_Mail::sanitize_routes().routed_recipients()evaluates it with the submitted values ($context['values']). If any rule is met, the notice goes to its emails instead of the usual recipients; if several are met, to all of them. It never goes in the HTML and the editor can’t see it without configuration permission.