[memb_form]

Description

Renders a form created in the Form Builder admin. The form is located by numeric id or by slug; unpublished forms render nothing.

On POST, the shortcode processes the submission: on success it redirects to the configured redirect URL (or the referring page) with a one-time success token in the query string; validation errors re-render the form with the posted values and error messages intact. Suspected spam submissions re-render a clean form.

After redirect, the flash success message (with placeholders resolved from the submission) is displayed by this same shortcode reading the ?torii_fb_success= token.

Frontend assets (base CSS, anti-spam JS, password toggle, strength meter) are enqueued automatically based on the form's field configuration.

Shortcode Examples

[memb_form id="42"]

By slug:

[memb_form id="contact-us"]

Shortcode Parameters

id

Form ID (numeric) or form slug. Required, empty renders nothing. Default: ''.

Shortcode Attributes

Attribute Value
Conditional No
Nestable No
Accepts formatting No