You can include additional settings to each contact form by adding code snippets in the specific format into the Additional Settings tab panel in the contact form editor screen.
By default, Contact Form 7 supports the following types of settings.
You may want to ensure that only logged-in users can submit your contact form. In such cases, use the subscribers-only mode. In this mode, non-logged-in users can’t submit the contact form and will see a message informing them that login is required, while logged-in users can use it as usual.
No anti-spam verification will be provided for contact forms in the subscribers-only mode since only welcome people are supposed to be able to use them. If this assumption is not applicable to your site, subscribers-only mode probably isn’t a good option for you.
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.
skip_mail setting works in the almost same manner as the
demo_mode, but the
skip_mail skips the mail sending only. Unlike
skip_mail doesn’t affect other activities like storing messages with Flamingo.
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.
Suppressing message storage
This setting tells message storage modules, such as Flamingo, not to store messages through this contact form.
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.