
- MODX 3
- PHP 8.2
- Vue 3


Result: the visitor sends a request. The email leaves in the same HTTP request. PageBuilder does not store submissions. Requires PageBuilder Pro and FetchIt.
[[!PageBuilder]].pagebuilder_fe_form_unavailable.forms.A form that lives on one page:
contact_form section.text, email, phone, textarea, select, radio, checkbox, date. For select and radio write options one per line: Label|value or value only. Field name: [a-z][a-z0-9_]*.1, yes, true, or on.emailsender or the site mail settings.One schema on many pages:
form_builder, pick the key, and set intro if you need it.PageBuilderFormBuilder snippet.The server checks CSRF and the nospam honeypot. Form v1 does not accept a file. An invalid email does not create a submission. An empty form_builder schema prints pagebuilder_fe_form_empty.
Two forms on one page. Keys differ.
contact_form, key callback. Repeater rows:
| name | label | type | options |
|---|---|---|---|
name | Name | text | |
email | email | ||
topic | Topic | select | Delivery|delivery and Payment|payment, one per line |
A second contact_form section uses key callback_footer. Same fields, different key.
form_builder on other pages reads the schema from the Forms tab, not from a section repeater. Fill intro when you need a paragraph above the fields. An empty schema prints pagebuilder_fe_form_empty.
Submit with a valid email. The message goes to the emailsender recipient. The nospam honeypot returns a silent success and sends no mail. An invalid email does not create a submission.
Delete the section. Delete the CMP schema separately.