WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by sevenspark v5.0.7

DTX

Extends Contact Form 7 by adding dynamic form fields that accepts shortcodes to prepopulate form fields with default values and dynamic placeholders.

DTX

The facts

Rating
4.7★ from 99
Active installs
100k+
Price
Free
Last updated
4 Aug 2026
Added
Oct 2010
Requires WP
5.5
Tested up to
WP 7.0.4
Requires PHP
7.4
Downloads
2,038,870

Our analysis

AI-assisted

DTX – Dynamic Text Extension for Contact Form 7 is a WordPress plugin that enhances the Contact Form 7 plugin by adding dynamic content capabilities. It allows you to create pre-populated fields in forms, drawing data from various sources such as post information, user data, and custom fields.

This plugin is suitable for users who want to improve their contact forms with dynamic values, making them more interactive and tailored to the user's context. It supports various field types, including text, email, URL, and more, providing flexibility in form creation.

Best for: This plugin suits WordPress users looking to create dynamic and interactive forms using Contact Form 7.

What it does well

  • Enhances Contact Form 7 with dynamic content capabilities
  • Supports multiple field types beyond text and hidden fields
  • Allows pre-population from various data sources
  • Includes built-in shortcodes for common scenarios
  • Custom shortcodes can be created for additional functionality

Where it falls short

  • Limited information on specific shortcode capabilities
  • No details on user support or documentation quality

Verdict

DTX – Dynamic Text Extension for Contact Form 7 offers useful enhancements for creating dynamic forms. It is a practical choice for users wanting to leverage additional data in their contact forms.

From the developer

sevenspark's own description of DTX, lightly tidied.

Contact Form 7 is an excellent WordPress plugin and one of the top choices of free WordPress plugins for contact forms. DTX – Dynamic Text Extension for Contact Form 7 makes it even more awesome by adding dynamic content capabilities. While default values in Contact Form 7 are static, DTX lets you create pre-populated fields pulled from other locations. Some examples might include:

  • Auto-filling a URL or just getting the domain name or path
  • Auto-filling a post ID, title, or slug
  • Auto-filling a title, URL, or slug for the current page
  • Pre-populating a product number
  • Referencing other content on the site
  • Populating with post or page info
  • Populating with the current user’s info
  • Populating with custom and meta fields
  • Generating unique identifiers for support tickets
  • Getting a list of post categories or other custom taxonomies
  • Getting a value from a cookie
  • Getting custom theme modifications
  • Any value using custom shortcodes

The possibilities are endless!

For over 10 years, DTX only handled <input type="text" /> and <input type="hidden" /> form fields, but version 4 finally introduces more:

  • email
  • URL
  • tel (for phone numbers)
  • number
  • range (slider)
  • textarea (multiline text)
  • drop-down menu (select field)
  • checkboxes
  • radio buttons
  • date
  • submit (yes, a submit button where you can have dynamic text!)

What does it do?

DTX provides flexibility to WordPress users in creating dynamic forms in Contact Form 7. DTX comes with several built-in shortcodes that will allow the contact form to be populated from HTTPS GET variable or any info from the get_bloginfo() function, among others. See below for included shortcodes.

Don’t see the shortcode you need on the list? You can write a custom one! Any shortcode that returns a string or numeric value can be used here. The included shortcodes just cover the most common scenarios, but DTX provides the flexibility for you to grab any value you have access to programmatically.

Dynamic Value

The bread and butter of this plugin, set a dynamic value! This field can take any shortcode, with two important provisions:

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

Dynamic Placeholder

Set a dynamic placeholder with this attribute! This feature accepts static text or a shortcode. If using a shortcode, the same syntax applies from the dynamic value 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, &#39;
  2. After that, it must be URL encoded so that spaces become %20 and other non-alphanumeric characters are converted.

If you’re using Contact Form 7’s tag generator to create the form tag, those extra needs are already taken care of. Dynamic placeholders are not available for dynamic hidden form tags.

Learn more and see examples from the DTX Knowledge base.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for building forms.

WPForms

WPForms

98

The best WordPress contact form plugin. Drag &amp; Drop form builder to create beautiful contact forms, paymen...

Free 5M+ installs 4.8★ (14,369)
Akismet Anti-spam: Spam Protection

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam sol...

Free 5M+ installs 4.7★ (1,186)
Fluent Forms

Get a fast contact form plugin. Create advanced forms using drag and drop form builder with all smart features...

Free 700k+ installs 4.8★ (790)
Forminator Forms

Best WordPress form builder plugin. Create contact forms, payment forms &amp; order forms with 1000+ integrati...

Free 600k+ installs 4.8★ (2,117)
Database Addon for Contact Form 7

Save and manage Contact Form 7 messages. Never lose important data. It is a lightweight contact form 7 databas...

Free 600k+ installs 5★ (1,874)
MetForm

MetForm

93

Elementor forms builder to create WordPress forms like contact form, booking form, feedback form, survey form,...

Free 600k+ installs 4.7★ (504)