
Add Fields Dynamically Contact Form 7 With it you can access a lot of post…
Add Fields Dynamically Contact Form 7 With it you can access a lot of post information e.g. title, slug, URL, ID, and even custom fields with shortcode values.
This plugin is also used in hidden field values so you can add any value in the shortcode in the hidden field.
Dynamic text field for contact form 7 plugin provides a new Shortcode type tag for the Contact Form 7 Plugin. It allows the dynamic generation of content for a text input box via any shortcode.
if you want to set up contact form 7 dynamic hidden fields you can make dynamic data. easy to access all features perfectly
you can use GET, POST, and REQUEST all variables dynamically in your contact form 7.
WITH THE CONTACT FORM 7 DYNAMIC FIELD PLUGIN YOU CAN:
- Easy to use
- Adding Tag, URL in custom fields.
- Using shortcode add post information.
- Custom text Field add here.
- Use Custom Value in a hidden field
- All posts, pages, and user all values populate in the custom shortcode Text field
- All posts, pages, and user all values populate in custom shortcode Hidden field
- Adding current posts and pages information – DYFCF7_get_post_title
- Adding current pages and posts URL – DYFCF7_page_url
- Adding current user information in all pages and posts – DYFCF7_get_current_user
- Adding custom fields values in all pages and posts – DYFCF7_get_custom_field key=’custom_key’
- Adding blog information – DYFCF7_get_bloginfo
- Adding product information in product pages – DYFCF7_get_product
- WPML Support
???? Documentation | ???? Demo | ???? Support
CONTRIBUTE AND TRANSLATE
The dynamic text field for contact form 7 is translated into multiple languages Chinese, Dutch, Russian, Spanish, and many more. Help localize calculation for contact form 7 even further by adding your locale Language. Click Here
Screenshots

CF7 form editor showing the shortcodefield and shortcodehidden tag generator buttons.

The shortcodefield tag generator popup with name, ID, class, and shortcode value fields.

The shortcodehidden tag generator popup for configuring a hidden dynamic field.
FAQ
Does this plugin require Contact Form 7?
Yes. Contact Form 7 must be installed and activated for this plugin to work.
Can I use my own custom shortcodes?
Absolutely. Any shortcode registered in WordPress — whether from a plugin, your theme, or functions.php — can be used as the field value. Enter the shortcode name and attributes without the square brackets.
How do I pass the value in CF7 email notifications?
After inserting the tag into your form, go to the Mail tab in CF7 and insert the corresponding mail tag (e.g., [your-field-name]) into the email body or subject.
Can I use this to pass hidden tracking data?
Yes. Use the shortcodehidden tag type to insert an invisible field that captures any shortcode value — such as the current page URL, post ID, or user info — and includes it in the form submission without displaying it to the visitor.
Is the `shortcodefield` tag required-field compatible?
Yes. Use shortcodefield* (with an asterisk) to mark the field as required. CF7’s built-in validation will prevent form submission if the field is empty.
Does it work with WooCommerce?
Yes. The DYFCF7_get_product shortcode retrieves product data and works on product pages, shop pages, cart, and checkout pages.
How do I use shortcode attributes?
Enter the shortcode without square brackets, and use single quotes for attribute values. Example: DYFCF7_get_post_title key='post_name'. Do not use double quotes inside the tag generator value field.
ChangeLog
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
shortcodefield tag type — a visible, editable text input populated via shortcode.
- Added
shortcodehidden tag 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*.