Get or show parameters from the URL directly within the Contact Form 7 plugin
There are times when using the Contact Form 7 WordPress plugin where you need to pass a parameter
from the URL and into a hidden field or display it in the form. This plugin is great for passing things
such as order numbers, selected packages, or even security information.
The above examples assume a URL such as http://mywebsite.com/contact?value=hello.
If you are using a different parameter such as order=hello, use [getparam order]
When editing a form in Contact Form 7, enter the getparam shortcode. There is only one valid parameter
which is the name of the $_GET value.
[getparam value]
For example, if the URL is http://mysite.com/contact?ordernum=12345, the shortcode will be:
[getparam ordernum]
Then when building the response email, you can pass the value with [ordernum]
When editing a form in Contact Form 7, enter the showparam shortcode. There is only one valid parameter
which is the name of the $_GET value.
[showparam value]
For example, if the URL is http://mysite.com/contact?ordernum=12345, the shortcode will be:
[showparam ordernum]
You cannot pass a value to the response email using this method, to do that, you will also have to add a hidden field.