Support » Requests and Feedback » Plugin Contact Form 7 with parameters

Plugin Contact Form 7 with parameters

  • Very happy with Contact Form 7 but I would like to use the same contact form for multiple events. I have tried to use the Page name as a parameter (one page per event with a description), but I can find no way of getting it into the Subject of the E-Mail since PHP doesn’t seem to be allowed. It would be too much for my users to have to code a new form for each event, when only about 5 are needed (all identical except for different e-mail addressees). In fact if I could pass Subject and Addressee both as parameters I would only need one form for all events!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can use the new COPY FORM feature available in the current 1.9.3 version to duplicate the forms.

    I have successful modified modules in CF7 to do this.
    I have replaced in modules/text.php:
    esc_attr( $value ) => esc_attr($_GET[$name] ? $_GET[$name] : $value )
    and, in textarea.php:
    esc_html( $value ) => esc_html($_GET[$name] ? $_GET[$name] : $value )

    Use with:

    Warning: this code is potentially not secure! Use at your risk!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin Contact Form 7 with parameters’ is closed to new replies.