Forms

The Edit Contact Form pages, accessible from Admin, Contact, Contact Forms, are the heart of Contact Form Redux. Using them, you can add unlimited contact forms, configure the contact forms the user sees, and the email that the contact forms send when the forms are submitted.

Below are details about the purpose and functioning of the various Tabs on the Edit Contact Form pages. More information about tags, the building blocks of contact forms, is available in Tags. If you’re new to Contact Form Redux, you should also take a look at the article Get Started for a basic primer on its use.

Contact Forms Page

The Contact Forms Page is the first page you see when you click the “Contact Forms” link in WordPress admin.

It functions much like a post or pages page; you can add new contact forms, duplicate, or delete existing contact forms. Click the title or the “Edit” hyperlink for a contact form to edit it.

Edit Contact Form Page

Form Tab

Use the Form Tab to configure the contact form that the front-end user will see. The contact form is constructed using Form Tags, and, optionally, HTML. More information about the types of tags that can be used to create contact forms is available in Tags, as well as the pages on individual tags.

Tip: If you save your work before going on to the Mail Tab, the mail tags available to use will be displayed on the Mail Tab. Unused mail tags–those based on Form Tags you’ve added but that don’t yet have corresponding Mail Tags on the Mail Tab–will be displayed in bold text.

Mail Tab

The Mail Tab contains the Mail Tags that are used to create the email sent when the contact form is submitted. In addition to Mail Tags, which correspond to Form Tags on the Form Tab, Special Mail Tags can be used on the Mail Tab to obtain data that is not contained in the Form Tab.

By default, the “Message Body” on the Mail Tab uses text format. Check the box to “Use HTML content type” in order to use HTML in the message body.

You can automatically exclude lines with empty Mail Tags from being output in the email by checking the “Exclude lines with blank mail tags from output.”

Mail(2) provides an additional set of fields to create a second email; e.g., if you want to create an autoresponder that is sent when a contact form is submitted.

Messages Tab

The Messages Tab allows you to customize the messages that are displayed to the user as feedback when they fill out and attempt to submit a contact form. Only text is allowed in Messages Tab fields; HTML and HTML entities are not allowed.

Additional Settings Tab

You can add the following to the Additional Settings tab in order to fine-tune the behavior of your contact forms:

Subscribers-Only Mode

In order to allow only logged-in users to submit a contact form, set the “subscribers-only” mode to “true:”

subscribers_only: true

With “subscribers-only” set to “true,” only logged-in users can submit the contact form. Users who aren’t logged-in can see the form, but when they attempt to submit it, they see a message that they must be logged-in in order to do so.

The “subscribers-only” mode bypasses spam filtering under the assumption that logged-in users won’t be spamming you.

Demo MOde

In “demo mode,” the contact form will display a message saying the form was successfully submitted when the Submit button is clicked, but no email will be sent.

demo_mode: on

Skip Mail

The “skip_mail” setting differs from demo mode in that it only skips sending the email, and executes other functions.

skip_mail: on

Acceptance as Validation

Ordinarily, an Acceptance Tag behaves differently from other types of tags; it does not display a validation error message even when the box is not checked. If you set “acceptance_as_validation” to “on” in Additional Settings, Acceptance Tags behave in the same way as other tags.