Data Source For Contact Form 7 Wordpress Plugin - Rating, Reviews, Demo & Download

Data Source For Contact Form 7 Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Data Source for Contact Form 7 plugin allows populating the “Contact Form 7” fields (text, email, URL, drop-down menu, …) with data stored in external data sources, like a database, CSV file, users information, post data, taxonomies, and JSON objects.

Data Source for Contact Form 7 includes two new controls in the controls bar of Contact Form 7, recordset and recordset field link. The “recordset” control reads the information from the external data source (a database, a CSV file, or any other data source supported), and the “recordset field link” control for linking the recordsets and form fields to populate them with the recordset data.

A form can include several “recordset” fields, and it is possible to link multiple “recordset field link” controls to the same recordset.

Features:

  • Set the information of external data sources available for the Contact Form 7 fields.
  • Easy to use, includes two new controls in the controls bar to define the recordsets and the links fields.
  • Includes the “Users Information” data source to populate the form’s fields with the users’ information.
  • Includes the “Posts Information” data source to populate the form’s fields with the posts’ data, pages, and custom post types (like the WooCommerce products).
  • Includes the Taxonomy data source to populate the form’s fields with taxonomy terms, like categories, posts tags, or any other custom taxonomy.
  • Allows using the fields’ values for filtering the recordset records.

Features in Premium version:

  • All features of the free version of the plugin.
  • Includes the Database data source to populate the form’s fields with the information of a database. Allow defining even complex queries.
  • Includes the CSV data source to populate the form’s fields with the data store into a CSV file.
  • Includes the JSON data source to populate the form’s fields with the data store into a JSON file. There are hundreds of services whose outputs are JSON objects.

Data Source Fields

Data Source for Contact Form 7 includes two new controls in the controls bar of Contact Form 7, recordset and recordset field link.

The recordset control reads the information from the external data source and makes it available on the form. A recordset field can read one or many records from the data source.

To insert a recordset field in the form, press the “recordset” button in the controls bar. This action opens a dialog to define the recordset.

The insertion dialog includes common attributes for all data sources and specific attributes for the data source selected.

The “recordset field link” control links a recordset field to other fields in the form to populate them with the recordset data.

To insert a link field in the form, press the “recordset field link” button in the controls bar. This action opens a dialog to define the relationship between a recordset and a form’s field.

The link dialog includes the attributes to define the relationship between the recordset field and the form’s fields.

Cases of Use

Get the information of the registered user and populate the form fields for his name and email:

    <label> Your name [text* your-name] </label>

    <label> Your email [email* your-email] </label>

    <label> Subject [text* your-subject] </label>

    <label> Your message (optional) [textarea your-message] </label>

    [cf7-recordset id="cf7-recordset-434" type="user" attributes="first_name, user_email" logged="1"]

    [cf7-link-field recordset="cf7-recordset-434" field="your-name" value="first_name"]

    [cf7-link-field recordset="cf7-recordset-434" field="your-email" value="user_email"]

    [submit "Submit"]

Populates the list of WooCommerce products and get the price of the selected one:

    <label>Products List [select menu-719]</label>

    <label>Product Price [number number-534]</label>

    [cf7-recordset id="cf7-recordset-619" type="database" engine="mysql" query="SELECT ID,post_title,meta_value as price FROM {wpdb.posts} posts, {wpdb.postmeta} meta WHERE posts.post_type='product' AND posts.ID=meta.post_id AND meta.meta_key='_regular_price'"]

    [cf7-link-field recordset="cf7-recordset-619" field="menu-719" value="ID" text="post_title"]

    [cf7-link-field recordset="cf7-recordset-619" field="number-534" value="price" condition="record['ID']=={field.menu-719}"]

    [submit "Submit"]

Screenshots

  1. Data Source Controls

    Data Source Controls

  2. Recordset Insertion Dialog

    Recordset Insertion Dialog

  3. Recordset Field Link Dialog

    Recordset Field Link Dialog

  4. Data Sources List

    Data Sources List

  5. User Information Data Source

    User Information Data Source

  6. Posts Data Source

    Posts Data Source

  7. Taxonomies Data Source

    Taxonomies Data Source

  8. Database Data Source

    Database Data Source

  9. CSV Data Source

    CSV Data Source

  10. JSON Data Source

    JSON Data Source


Reviews & Comments