Contact Form 7 Input Default Values


Input default value from URL

We will get contact form 7 default input value by url. We will get URL data by `default:get option.

Example Shortcode:-

[text* your-name default:get]

URL is http://example.com/contact/?your-name=Muhammed+Arshid

How to add shortcode as default input values

Install Contact Form 7 Dynamic Text addon. Then we can add a shortcode “dynamictext” or “dynamichidden“.

Example

[dynamictext your-name value=”example-shortcode key=’day'”]

Add custom shortcode function in selected theme functions.php