Skip to content
  1. Extras
  2. PageBuilder
  3. Frontend output
  4. Snippets
  5. PageBuilderFetchIt

Snippet PageBuilderFetchIt ​

Wrapper around FetchIt for Pro forms. Chunks pagebuilderpro_quiz, pagebuilderpro_contact_form, and pagebuilderpro_form_builder call it uncached. Do not call this snippet from the resource template.

Upstream FetchIt checks class_exists('pdoTools'). On MODX 3 the class is ModxPro\PdoTools\Fetch, the check fails, and the form stays raw Fenom. PageBuilderFetchIt renders the form chunk through pdoTools and sets method="post" plus data-fetchit.

Parameters ​

ParameterPurpose
formChunk name with the <form> markup. An empty value returns lexicon pagebuilder_fe_form_unavailable
snippetHandler FetchIt calls on submit: PageBuilderQuiz, PageBuilderContactForm, or PageBuilderFormBuilder

The section chunk passes the remaining properties into the form and the handler. If FetchIt is not installed, the snippet returns the same lexicon string.

Dependencies ​

PackageWhy
pagebuilderproSnippet and form chunks
FetchItAJAX submit
pdoToolsFenom render

See also ​