Support » Plugins » [Plugin: Contact Form 7] Predifinied field-values

  • Hi !

    Is it possible to add a new filter for the next Contact-Form Release. ?

    The setup a default value from code for a specific field i added the line
    $value = apply_filters('wpcf7_apply_fieldvalue_' . $name, $value);
    to text.php at line 76.

    With add_filter('wpcf7_apply_fieldvalue_fieldname', 'my_function') now i could define a function for each field to add a default value.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Looks nice, but in what case specifically do you need this? I think that in most of cases setting default value like [text your-text opt1 opt2 "blar blar"] works.

    This would be helpful for me so I could place the name of the element within the input as a default value and then have it disappear after it is selected.

    OK. I will consider it for the future release.

    This is for contact-forms in posts where some values should be taken from the post data. So it’s not a fixed default value.
    e.g. on Real-Estate pages to display the current property as default subject.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Contact Form 7] Predifinied field-values’ is closed to new replies.