Skip to main content
The Form Builder is a visual editor embedded inside each WooCommerce product. It produces a JSON field configuration that the frontend rendering engine reads at checkout time. Changes you make here appear immediately for students — no code deployment required.

Finding the Form Builder

1

Open WooCommerce products

In the WordPress admin sidebar, click Products. The product list shows all published and draft products.
2

Edit the target product

Hover over the product you want to configure and click Edit, or click the product title. This opens the standard WooCommerce product editor.
3

Scroll to the UTB Product Builder panel

Below the classic WordPress editor area, locate the UTB Product Builder meta box. It appears after the WooCommerce product data tabs.
4

Open the Form Builder tab

Inside the UTB Product Builder panel, click the Form Builder tab. The visual canvas loads with any previously saved field configuration for this product.
The Form Builder tab is only meaningful for products that have a flow assigned. If no flow is assigned, the form fields you configure will not render on the frontend. See Flow Assignment first.

Builder layout

The Form Builder has three columns:
ColumnPurpose
Left sidebar — ToolsPalette of draggable field types and pre-built system fields
Center canvasThe live field list; defines field order as it appears on the frontend
Right sidebar — PropertiesInspector panel for the currently selected field; also contains theme and CSS controls

Adding fields

1

Choose a field type

In the Tools sidebar, locate the field you want to add. Basic field types available:
  • Texto — single-line text input
  • Párrafo — multi-line textarea
  • Lista — dropdown selector
  • Fecha — date picker
  • Archivo — file upload
  • Título — non-input heading element
  • Nota — informational text block
System standard fields (pre-configured IDs and labels):
  • Nombres — maps to field ID utb_nombre
  • Apellidos — maps to field ID utb_apellido
  • Correo — maps to field ID utb_correo, renders as an email input
2

Add the field to the canvas

Click the field item in the palette, or drag it into the center canvas area. The field appears at the bottom of the current field list.
3

Verify the field appears on the canvas

The canvas updates immediately. The vertical order in the canvas matches the order students see on the product page.

Removing fields

1

Hover over the field

Move your cursor over the field you want to remove in the canvas. A red trash icon appears on the field card.
2

Click the trash icon

Click the trash icon to remove the field from the canvas.
Deleting fields that are required by the assigned flow — such as Cédula or Programa in the CEP flow — will trigger native restrictions in the frontend. The system will block checkout if mandatory fields are missing. Confirm the flow’s required fields before deleting.

Reordering fields

Drag any field card in the canvas up or down to change its position. The order in the canvas is the exact order rendered in the browser at checkout. Drop the field in the desired position and release.

Modifying labels and descriptions

1

Select the field

Click any field in the canvas. The Properties sidebar on the right activates and shows that field’s editable attributes.
2

Edit the label

In the Properties panel, find the Etiqueta / Label input. Type the visible field title students see above the input — for example, Programa Académico (Requerido).
3

Edit the description

The Descripción Adicional field controls the smaller secondary text that appears below the label. Use it to guide students — for example, Selecciona el programa que deseas cursar.If you clear this field entirely, the secondary text line does not appear on the frontend, producing a more compact form.

Injecting API validation rules onto input fields

API validation rules are created in UTB Builder > API Connections (see API Connections). Once a rule exists, you can attach it to any input field.
1

Select the target field

Click the input field in the canvas — for example, the Cédula field. The Properties panel opens on the right.
2

Open the API validation rules section

Scroll down in the Properties panel until you reach the Reglas de Validación API section. The dropdown lists all rules configured in the API Connections hub.
3

Select a rule

Choose the rule to apply, for example Validar Roles Banner. The inspector expands to ask which other field provides the variable values required by the rule’s endpoint template.
4

Map variable sources

For each {{variable_key}} placeholder in the rule’s endpoint, the inspector asks you to specify the source field. Select Este mismo campo to use the current field’s value, or select another field by name to pull from an adjacent field.
Variable keys must match the placeholders defined in the rule’s Endpoint Mapping exactly. For example, if the endpoint is /woocommerce/rol/{{cedula_key}}, the variable name in the rule must be cedula_key.

Inline validation rules (regex-based)

The Form Builder also provides built-in regex validation rules that do not require an API call. These are available in the same Reglas de Validación section:
Rule IDLabelPattern
email_utbEmail UTB^[a-zA-Z0-9._-]+@utb\.edu\.co$
phone_coTeléfono Colombia^(\+57)?[0-9]{10}$
cedula_coCédula Colombia^[0-9]{6,10}$
alphanumericAlfanumérico^[a-zA-Z0-9\s]+$
Select any of these in the Properties panel to add client-side validation to the field.

Theme and styling

The bottom of the Properties sidebar contains visual theme controls that apply to this product’s form:
  • Color Principal — primary color for buttons and accents
  • Redondez (Bordes) — border radius in pixels (0–20)
  • Espaciado — layout density: Compacto, Cómodo, or Espacioso
Expand the CSS Avanzado section to write custom CSS scoped to this form. Use selectors like .utb-field to target form elements.

Saving the form

1

Click Save Changes

At the bottom of the Properties sidebar, click the Guardar Cambios button. The builder sends the current field configuration as a JSON payload to the server via AJAX (wp_ajax_utb_save_form_config).
2

Verify the save confirmation

A success message appears in the builder confirming the configuration was saved. The JSON is stored in the _utb_form_config post meta on the product.

Testing the form

After saving, visit the product’s frontend page to verify:
  1. All fields appear in the correct order.
  2. Labels and descriptions display as configured.
  3. Dropdown fields populated from data sources render their options.
  4. API validation rules fire when the target field loses focus (if applicable).
  5. Required field enforcement works before the Add to Cart / checkout step.
The Form Builder opens in fullscreen mode when accessed via the Constructor Visual hidden admin page (/wp-admin/admin.php?page=utb-builder&product_id=ID). This mode hides the WordPress admin bar and expands the canvas to full viewport height for easier editing.

Build docs developers (and LLMs) love