• Resolved elbrucko112

    (@elbrucko112)


    Hi there, i would like to send a hidden value in the background each time when a user sends the form.

    this is how the string should look like:

    [hidden gr4wp_tag_foo “foo”]

    where “foo” is the value custom field “foo_tag

    1.st problem: the value itself can not be found at all. actuall NO custom field value. also if i follow 1:1 the docu

    [dynamictext inputname “CF7_get_custom_field key=’foo_tag'”]

    2.th problem:

    how can i create such a nested tag?

Viewing 1 replies (of 1 total)
  • The first thing I would suggest is checking for the meta key. You can do so by temporarily putting this PHP code in your single.php template of your currently active theme:

    <?php global $post;
    var_dump(get_metadata('post', $post->ID)); ?>

    That way, you’ll be able to double check if foo_tag is the actual key to use and it has the value you’re looking for.

    Assuming it is and it has the value you’re expecting it to have, you’ll want to use the dynamic hidden form tag with the CF7_get_current_var shortcode like this:

    [dynamic_hidden gr4wp_tag_foo "CF7_get_current_var key='foo_tag'"]

    Let me know if it gives you any trouble!

Viewing 1 replies (of 1 total)
  • The topic ‘custom field value inside a hidden tag’ is closed to new replies.