WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Contact Form 7 with parameters (3 posts)

  1. Nigelino
    Member
    Posted 5 years ago #

    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!

  2. digitz
    Member
    Posted 5 years ago #

    You can use the new COPY FORM feature available in the current 1.9.3 version to duplicate the forms.

  3. lorenzoC
    Member
    Posted 4 years ago #

    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:
    http://your.web.site/contact/?your-message=precompiled%20text

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

Topic Closed

This topic has been closed to new replies.

About this Topic