You can include additional settings to each contact form by adding code snippets in the specific format into the Additional Settings field in the contact form’s edit screen.
By default, Contact Form 7 supports the following types of settings.
If you set
demo_mode: on in the Additional Settings field, the contact form will be in the demo mode. In this mode, the contact form will skip the process of sending mail and just display “completed successfully” as a response message.
Acceptance as Validation
By default, an acceptance checkbox behaves differently from other types of fields; it does not display a validation error message even when the box is not checked. If you set
acceptance_as_validation: on in the Additional Settings field, acceptance checkboxes in the contact form behave in the same way as other form fields.
For details, see Acceptance Checkbox.
on_sent_ok: "alert('sent ok');" on_submit: "alert('submit');"
If you set
on_submit:, you can tell the code that should be performed when the form submitted regardless of the outcome.