Dynamic text field for contact form 7
Add dynamic text and hidden fields to Contact Form 7 using shortcodes — auto-populate post, user, product, and custom field data.
Solid choice
Dynamic text field for contact… is a solid plugin choice in 2026, with a few things worth checking first. It runs on 1K+ sites, is rated 5/5 and was last updated 1 week ago, and scores 77/100 on our health check.
- Actively developed — last update 1 week ago
- Tested with the latest WordPress (7.1)
- Momentum — downloads up 150.8% vs the previous 30 days
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Dynamic text field for cont… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| cf7 | #71 |
| contact form 7 | #67 |
| dynamic field | #7 |
| hidden field | #8 |
| shortcode field | #13 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 1 reviews
About Dynamic text field for contact form 7
From the official readme · v1.1Description
Dynamic text field for contact form 7 extends Contact Form 7 with two powerful new field types — shortcodefield (visible text input) and shortcodehidden (hidden input) — that automatically populate their values from any WordPress shortcode.
Stop hardcoding form values. Instead, let your CF7 forms pull live data directly from the current post, the logged-in user, a WooCommerce product, custom meta fields, or any shortcode you define.
Whether you need to pass the current page URL, the post title, or a user’s username silently in a hidden field, this plugin makes it seamless — no coding required after setup.
🔧 What You Can Do
- Auto-populate from post data — Inject the current post’s title, slug, ID, or any post property into a form field automatically using
DYFCF7_get_post_title. - Pull current user info — Pre-fill fields with the logged-in user’s username, email, display name, or any WP_User property using
DYFCF7_get_current_user. - Fetch custom field (post meta) values — Retrieve any custom field value by key from the current post or a specific post ID using
DYFCF7_get_custom_field key='your_key'. - Insert the current page URL — Pass the current page’s URL into a form field automatically using
DYFCF7_page_url. - Access site/blog info — Pull in the site name, URL, admin email, or any
get_bloginfo()value usingDYFCF7_get_bloginfo. - Integrate WooCommerce product data — On product, shop, cart, and checkout pages, populate fields with product name, ID, price, or any product property using
DYFCF7_get_product. - Use any custom shortcode — Not limited to built-in helpers. Pass the name of any registered shortcode (without square brackets) as the field value, and this plugin will resolve it at render time.
- Visible or hidden output — Use
shortcodefieldfor a visible, editable text input, orshortcodehiddenfor a silent hidden field — perfect for tracking metadata without showing it to users. - Required field validation — Mark
shortcodefieldas required using the asterisk variant (shortcodefield*), and CF7’s standard validation will enforce it. - Tag Generator UI — Both field types come with a full tag generator panel inside the CF7 form editor, complete with name, ID, class, and value inputs — no manual shortcode writing needed.
📋 Built-in Shortcodes
Shortcode
Description
DYFCF7_get_post_title key='post_title'
Get any post/page property (post_title, post_author, ID, etc.)
DYFCF7_get_current_user key='user_login'
Get any property of the currently logged-in user
DYFCF7_get_custom_field key='meta_key'
Get a custom field (post meta) value by key
DYFCF7_page_url
Get the URL of the current page
DYFCF7_get_bloginfo show='name'
Get site info (name, URL, admin_email, etc.)
DYFCF7_get_product key='name'
Get WooCommerce product data on product pages
💡 How It Works
In the CF7 form editor, click the shortcodefield or shortcodehidden tag button. In the popup, enter a shortcode name — without the square brackets — into the value field. For example, to pre-fill a field with the current post title, enter:
DYFCF7_get_post_title key='post_title'
The plugin resolves the shortcode on page load and injects the result as the field’s value. You can also pass any custom shortcode you have registered in your theme’s functions.php.
🔗 Resources
- 🌟 Documentation
- 🌟 Demo
- 🌟 Support
Installation
- Upload the plugin folder to
/wp-content/plugins/, or install directly via the WordPress Plugins screen. - Activate the plugin through the Plugins menu in WordPress.
- Make sure Contact Form 7 is installed and activated.
- Edit any CF7 form — you will see two new tag buttons: shortcodefield and shortcodehidden.
- Click a tag button, fill in the name and shortcode value in the popup, and click Insert Tag.
- Save the form and the field will dynamically resolve the shortcode value on the frontend.
Changelog
Security fix for unauthenticated arbitrary shortcode execution. Update recommended.
1.1
- Security: fixed unauthenticated arbitrary shortcode execution. Submitted/hangover values are never passed to do_shortcode(); only the shortcode configured by the form author is executed.
- Security: hidden shortcode fields ignore submitted values on re-render.
- Security: built-in shortcodes (post title, current user, custom field, product) now use key allowlists; custom field shortcode checks post status, password and read permission.
- Hardening: validation checks isset() and uses wp_unslash() before sanitizing.
1.0
- Initial release.
- Added
shortcodefieldtag type — a visible, editable text input populated via shortcode. - Added
shortcodehiddentag type — a hidden input populated via shortcode. - Built-in shortcodes:
DYFCF7_get_post_title,DYFCF7_get_current_user,DYFCF7_get_custom_field,DYFCF7_page_url,DYFCF7_get_bloginfo,DYFCF7_get_product. - Tag Generator UI for both field types in the CF7 form editor.
- Required field validation support for
shortcodefield*.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Dynamic text field for contac… alternatives
All cf7 plugins →FAQ
Dynamic text field for contact form…: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Dynamic text field for contact… free?
Yes. Dynamic text field for contact… is free to download and use from the official WordPress.org plugin directory.
Is Dynamic text field for contact… safe to use in 2026?
Dynamic text field for contact… is a solid plugin choice in 2026, with a few things worth checking first. It runs on 1K+ sites, is rated 5/5 and was last updated 1 week ago, and scores 77/100 on our health check.
How many websites use Dynamic text field for contact…?
Dynamic text field for contact… is active on 1K+ WordPress websites and has been downloaded 9,445 times since it launched in May 2022. It was downloaded 1,061 times in the last 30 days.
Does Dynamic text field for contact… work with WordPress 7.1?
Yes. The developer has tested Dynamic text field for contact… up to WordPress 7.1.5, the latest release. It requires WordPress 6.5 or newer.
What PHP version does Dynamic text field for contact… need?
Dynamic text field for contact… requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Dynamic text field for contact… last updated?
The latest version, 1.1, was released on November 27, 2026 (1 week ago).
Who makes Dynamic text field for contact…?
Dynamic text field for contact… is developed and maintained by silverplugins217.
What are the best alternatives to Dynamic text field for contact…?
The most popular alternatives to Dynamic text field for contact… are Database Addon for Contact… (600K+ installs), GSheetConnector (40K+ installs) and CF7 to Webhook (30K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card



