Nigelino
Member
Posted 8 months 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!
digitz
Member
Posted 8 months ago #
You can use the new COPY FORM feature available in the current 1.9.3 version to duplicate the forms.
lorenzoC
Member
Posted 3 weeks 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!