{"id":26845,"date":"2013-12-22T04:50:51","date_gmt":"2013-12-22T04:50:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/contact-form-7-get-and-show-parameter-from-url\/"},"modified":"2015-03-02T16:30:07","modified_gmt":"2015-03-02T16:30:07","slug":"contact-form-7-get-and-show-parameter-from-url","status":"publish","type":"plugin","link":"https:\/\/pl.wordpress.org\/plugins\/contact-form-7-get-and-show-parameter-from-url\/","author":6110472,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.9.7","stable_tag":"0.9.7","tested":"4.1.42","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Contact Form 7 Get and Show Parameter from URL","header_author":"Chad Huntley","header_description":"","assets_banners_color":"","last_updated":"2015-03-02 16:30:07","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/elementdesignllc.com\/2011\/11\/contact-form-7-get-parameter-from-url-into-form-plugin\/","header_author_uri":"http:\/\/URI_Of_The_Plugin_Author","rating":5,"author_block_rating":0,"active_installs":800,"downloads":15144,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"7"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.9.5","0.9.6","0.9.7"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1152,19507,19508],"plugin_category":[],"plugin_contributors":[81150],"plugin_business_model":[],"class_list":["post-26845","plugin","type-plugin","status-publish","hentry","plugin_tags-contact-form-7","plugin_tags-get-parameter","plugin_tags-show-parameter","plugin_contributors-chuntley","plugin_committers-chuntley"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/contact-form-7-get-and-show-parameter-from-url.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>There are times when using the Contact Form 7 WordPress plugin where you need to pass a parameter \nfrom the URL and into a hidden field or display it in the form. This plugin is great for passing things \nsuch as order numbers, selected packages, or even security information.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Go to the \"Plugins\" section of your Wordpress admin panel<\/li>\n<li>Click \"Add New\" at the top<\/li>\n<li>Click \"Upload\" at the top<\/li>\n<li>Upload the included zip file<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>For getting a parameter as a hidden text field, use [getparam value]<\/li>\n<li>For getting a parameter to display as text, use [showparam value]<\/li>\n<\/ol>\n\n<p>The above examples assume a URL such as http:\/\/mywebsite.com\/contact?value=hello.\nIf you are using a different parameter such as order=hello, use [getparam order]<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>How do I add a Hidden Field?<\/dt>\n<dd><p>When editing a form in Contact Form 7, enter the getparam shortcode. There is only one valid parameter \nwhich is the name of the $_GET value.<\/p>\n\n<p>[getparam value]<\/p>\n\n<p>For example, if the URL is http:\/\/mysite.com\/contact?ordernum=12345, the shortcode will be:<\/p>\n\n<p>[getparam ordernum]<\/p>\n\n<p>Then when building the response email, you can pass the value with [ordernum]<\/p><\/dd>\n<dt>How do I show a $_GET value on the form?<\/dt>\n<dd><p>When editing a form in Contact Form 7, enter the showparam shortcode. There is only one valid parameter \nwhich is the name of the $_GET value.<\/p>\n\n<p>[showparam value]<\/p>\n\n<p>For example, if the URL is http:\/\/mysite.com\/contact?ordernum=12345, the shortcode will be:<\/p>\n\n<p>[showparam ordernum]<\/p>\n\n<p>You cannot pass a value to the response email using this method, to do that, you will also have to add a hidden field.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9.7<\/h4>\n\n<ul>\n<li>Fixed XSS issue, thanks Ryan Hellyer (https:\/\/geek.hellyer.kiwi\/) for the heads up!<\/li>\n<\/ul>\n\n<h4>0.9.6<\/h4>\n\n<ul>\n<li>Update shortcode init for Contact Form 7 3.7.2<\/li>\n<\/ul>\n\n<h4>0.9.5<\/h4>\n\n<ul>\n<li>Release Contact Form 7 module as a plugin<\/li>\n<\/ul>","raw_excerpt":"Get or show parameters from the URL directly within the Contact Form 7 plugin","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26845"}],"author":[{"embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/chuntley"}],"wp:attachment":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26845"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26845"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26845"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26845"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26845"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}