• I’ve used custom_field to set the value of a hidden field, but all that gets written into the html is the text ‘custom_field-foo’, or whatever was set as the default value.

    From the description of how custom_fields work, all I need to do for a custom field called ‘foo’ is to enter ‘custom_field-foo’ as the default value when setting up my hidden field.

    This provides a shortcode [hidden Field_h1 “custom_field-foo”], which in turn generates the following html:

    <input type="hidden" name="Field_h1" value="custom_field-foo" class="wpcf7-hidden">

    This is clearly not what it says on the tin.

    If my custon field has a value of 25, then the html SHOUld be:

    <input type="hidden" name="Field_h1" value="25" class="wpcf7-hidden">

    So, is it me, or the plugin not working correctly?

    Thanks in advance

    https://ww.wp.xz.cn/plugins/contact-form-7-modules/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you get a solution to this I am having the same problem

    Hi
    the shortcode [hidden hiddenfile "0"] return me <input name="hiddenfile" value="Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array, Array" class="wpcf7-form-control wpcf7-hidden" type="hidden">

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom_field does not insert any value’ is closed to new replies.