Contact Form 7 – fill fields dynamically from URL
My tutorial about WordPress contact form 7 populate the value of a field dynamic.
Example:
Code to add to form:
[text your-name default:get placeholder "Your Name"]
URL to call post and add values inside form – just click and test!
Example mentioned in video:
Video: How to auto Populate Input Fields with URL Parameter
Source (in my eyes to complicated): https://contactform7.com/getting-default-values-from-the-context/
PS: CF7 Form was styled with free Contact Form 7 Styler plugin
How do you output the URL with extra bits in the email area? Everything else was super easy to understand.
Hey Glen,
The same way as you add content to form i guess: https://saleswonder.biz/blog/contact-form-7-fill-fields-dynamically-from-url/?your-name=%5Btext your-name default:get placeholder “Your Name”]&your-email=[text email default:get placeholder “Your email”]
contact form 7 dynamic field is best plugin for used in hidden values and add any value in the shortcode in the hidden field.