web_form Shortcode

The web_form shortcode renders a saved POM form by its post ID.

Usage

[web_form id="123"]

Replace 123 with the ID of a published POM form.

Attributes

Attribute Default Accepted values Purpose
id 0 Published POM form post ID Selects the form to render. A missing or unpublished ID cannot display a usable form.

Before using the shortcode

  1. Enable POM Forms under Settings → POM Theme → Forms → General.
  2. Create and publish the form under Forms.
  3. Copy its numeric ID.
  4. Add the shortcode to trusted content.
  5. Test a signed-out submission.

For normal page editing, add the Form element in the visual builder and choose the form from its selector.

Verification

Test web_form in its relevant logged-in and logged-out states, including validation, success and error feedback. Pay particular attention to id.

Related guides