| Post |
|
New Member | popstalin posts 4 12:03 am August 1, 2009
| |
|
|
Please replace the ??? with your data!
- URL to the FORM: http://form not live
- The browser used: FF
- cforms version: 10.6
- Your Wordpress version: 2.7.1
Heya,
I've been using cforms for while but to do pretty basic stuff. I have a client that wants users to be able to post to the page immediately (as though it were content) but using the comments to do so. He then wants to add two fields to the comment form for a "recipient name & email." Once the submit button is hit, he wants the comment posted and the results of the comment emailed to the recipient. Is this possible to do with cforms? If so, how?
TIA!
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:54 pm August 2, 2009
| |
|
|
not supported per se, however, here is a workaround:
- configure the form using the WP comment form feature
- configure the form's BCC field to use the form admin's email address
- in my-functions.php, use the "logic routine" to change the admin email address on the fly to the email address you need
|
|
|
|
|
New Member | popstalin posts 4 7:19 pm August 2, 2009
| |
|
|
in my-functions.php, use the "logic routine" to change the admin email address on the fly to the email address you need
The email address I'll need is the new field added to the "Comments" form for recipient email. I'll be able to grab that on the fly? If so, how?
Thanks again!
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:29 pm August 2, 2009
| |
|
|
see my-functions.php and the examples in there, all (extra) fields are stored in the passed on data array.
|
|
|
|
|
New Member | popstalin posts 4 7:39 pm August 2, 2009
| |
|
|
Okay, but do I use the field name for the data array (from the form generator) or do I use the id (which in my case is cf4_field_5)?
Thanks again, sorry I'm so dense about this. I'm an HTML coder not a programmer. :)
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:42 pm August 2, 2009
| |
|
|
see the mail(…) example in my-functions.php it will allow you to send the data array to your email address, so you know exactly how to address the array.
|
|
|
|
|
New Member | popstalin posts 4 7:51 pm August 2, 2009
| |
|
|
I get that part, it's the whole data array thing that's throwing me. Can you give me an example (a link even) of what said data array is to look like?
Thanks.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:39 am August 3, 2009
| |
|
|
I thought I responded to that in post #6
"…so you know exactly how to address the array…"
|
|
|
|