WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Contact Form 7 Modules] Not getting hiden field value

[Resolved] [Plugin: Contact Form 7 Modules] Not getting hiden field value

Viewing 1 replies (of 1 total)
  • Plugin Author Zack Katz

    @katzwebdesign

    Use the this tag inside the form: [hidden hidden-271 id:categoryrequest] and [hidden-271] inside the message body.

    And then you can add the following code to your theme’s functions.php file:

    add_filter('wpcf7_hidden_field_value_categoryrequest', 'wpcf7_hidden_field_add_query_arg');
    function wpcf7_hidden_field_add_query_arg($value = '') {
    	if(isset($_GET['category'])) {
    		return $_GET['category'];
    	}
    	return $value;
    }

    This will achieve what you’re looking to do.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Contact Form 7 Modules] Not getting hiden field value’ is closed to new replies.