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

PageBuilderQuiz snippet

AJAX submit handler for Pro quiz section. The section chunk calls it via FetchIt. Do not call this snippet from the resource template.

Purpose

Validates answers and contacts, server-side total in pricing mode, email via modMail, FetchIt JSON response.

Where it is called

Chunk pagebuilderpro_quiz{'!FetchIt' | snippet} with form pagebuilderpro_quiz_form and snippet PageBuilderQuiz.

Parameters

FetchIt sets parameters from the form (POST): pb_quiz_key, answer[...], contact fields, honeypot nospam. There are no separate snippet properties for template calls.

Dependencies

PackageWhy
pagebuilderproquiz section
FetchItAJAX and inline errors

See also