
PageBuilder
Visual section builder for MODX 3: draft and publish without overwriting resource content


AJAX submit handler for Pro contact_form section. The section chunk calls it via FetchIt. Do not call this snippet from the resource template.
Validates fields, email via modMail, FetchIt JSON response (success / field errors / redirect).
Chunk pagebuilderpro_contact_form → {'!FetchIt' | snippet} with form pagebuilderpro_contact_form_fields and snippet PageBuilderContactForm.
FetchIt sets parameters from the form (POST): pb_form_key, fields from section repeater, honeypot nospam. There are no separate snippet properties for template calls.
| Package | Why |
|---|---|
| pagebuilderpro | contact_form section |
| FetchIt | AJAX and inline errors |