Controller Fields for Contact Form 7

Wopisanje

Contact Form 7 is an excellent WordPress plugin and one of the top choices of free WordPress plugins for contact forms. Controller Fields makes it even more awesome by adding dynamic content capabilities. This plugin provides new form tags for select fields, checkboxes, and radio buttons so you can use them to control the display of other fields and content. Some examples might include:

  • Hiding or revealing additional form fields based the current value in a dropdown
  • Hiding or revealing content when users click a checkbox
  • Hiding or revealing information based on which radio button is currently selected
  • Controllers and controlled fields can be nested

The possibilities are endless!

WHAT DOES IT DO?

This plugin creates three (3) new form tags for controlling the appearance of other form tags (aka „controller“) and a special form tag generator button to output the HTML needed to wrap the controllable form tags inside.

HOW TO USE IT

After installing and activating the plugin, you will have four (4) new buttons at the top when creating or editing a Contact Form 7 form: select controller, checkbox controller, radio controller, and controlled form tag wrapper. Most of the options in their tag generators will be familiar to Contact Form 7 users but there have been some upgrades.

Id Attribute

The frontend script relies on unique IDs for the controller form tags, so be sure to always set one!

Options

There are three (3) ways you can define your options. The first method is simply typing your options with each one on a new line, e.g.:

Apples
Bananas
Dragonfruit

The second method is similar, but it allows you more control over the value and label by using | to separate them, e.g.:

fruit_1 | Apples
fruit_2 | Bananas
fruit_3 | Dragonfruit

The third method is dynamic in that you can use a shortcode to populate your options with two important provisions:

  1. The shortcode should NOT include the normal square brackets ([ and ]). So, instead of [my_shortcode key='value'] you would use my_shortcode key='value'.
  2. Any parameters in the shortcode must use single quotes. That is: my_shortcode key='value' and not my_shortcode key="value"

Shortcodes used here should return a string value with the option or option group HTML.

Default value

This field can take static text or a shortcode. If using a shortcode, the same syntax applies from the options field. However, this field also has a few more needs:

  1. The text/shortcode must first have apostrophes converted to it’s HTML entity code, '
  2. After that, it must be URL encoded so that spaces become %20 and other non-alphanumeric characters are converted.

Placeholder

Only available for the select controller form tag, this field can take static text or a shortcode. If using a shortcode, the same syntax applies from the options field. However, this field also has a few more needs:

  1. The text/shortcode must first have apostrophes converted to it’s HTML entity code, '
  2. After that, it must be URL encoded so that spaces become %20 and other non-alphanumeric characters are converted.

Read Only Attribute

Simply check this box if you do not want to let users edit this field. It will add the readonly attribute to your form field.

Disabled Attribute

Simply check this box if you do not want to submit this field in the form. It will add the disabled attribute to your form field.

Instalacija

There are three (3) ways to install my plugin: automatically, upload, or manually.

Install Method 1: Automatic Installation

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser.

  1. Log in to your WordPress dashboard.
  2. Navigate to Plugins > Add New.
  3. Where it says “Keyword” in a dropdown, change it to “Author”
  4. In the search form, type “TessaWatkinsLLC” (results may begin populating as you type but my plugins will only show when the full name is there)
  5. Once you’ve found my plugin in the search results that appear, click the Install Now button and wait for the installation process to complete.
  6. Once the installation process is completed, click the Activate button to activate my plugin.

Install Method 2: Upload via WordPress Admin

This method involves is a little more involved. You don’t need to leave your web browser, but you’ll need to download and then upload the files yourself.

  1. Download my plugin from WordPress.org; it will be in the form of a zip file.
  2. Log in to your WordPress dashboard.
  3. Navigate to Plugins > Add New.
  4. Click the Upload Plugin button at the top of the screen.
  5. Select the zip file from your local file system that was downloaded in step 1.
  6. Click the Install Now button and wait for the installation process to complete.
  7. Once the installation process is completed, click the Activate button to activate my plugin.

Install Method 3: Manual Installation

This method is the most involved as it requires you to be familiar with the process of transferring files using an SFTP client.

  1. Download my plugin from WordPress.org; it will be in the form of a zip file.
  2. Unzip the contents; you should have a single folder named controller-fields-for-contact-form-7.
  3. Connect to your WordPress server with your favorite SFTP client.
  4. Copy the folder from step 2 to the /wp-content/plugins/ folder in your WordPress directory. Once the folder and all of its files are there, installation is complete.
  5. Now log in to your WordPress dashboard.
  6. Navigate to Plugins > Installed Plugins. You should now see my plugin in your list.
  7. Click the Activate button under my plugin to activate it.

HSP

Please check out the FAQ on our website.

Pohódnoćenja

27. oktobra 2023
Thank you soo much for such a wonderful effort for Awesome feature for Contact form 7.
Čitajće 1 pohódnoćenje

Sobuskutkowarjo a wuwiwarjo

„Controller Fields for Contact Form 7“ je softwara wotewrjeneho žórła. Slědowacy ludźo su k tutomu tykačej přinošowali.

Sobuskutkowarjo

Protokol změnow

1.0.2

Submission Date: May 5, 2023

  • Fix: modifications from plugin review

1.0.1

Submission Date: May 1, 2023

  • Fix: modifications from plugin review

1.0.0

Submission Date: March 30, 2023

  • Major: first submission!