Would like to purchase developer version.
But as confirmation email is sent to client, is it possible to attach a csv to this email with only certain fields included?
If not, is there an alternative feature you can suggest?
Would like to purchase developer version.
But as confirmation email is sent to client, is it possible to attach a csv to this email with only certain fields included?
If not, is there an alternative feature you can suggest?
You can create a custom CSV and send that as an attachment to the email. You would use a couple of filters and hooks which are built in to Gravity Forms. Specifically, gform_after_submission and gform_user_notification_attachments.
http://www.gravityhelp.com/documentation/page/Gform_after_submission
http://www.gravityhelp.com/documentation/page/Gform_user_notification_attachments
You would create your custom CSV using a subset of the data which was submitted, then you would attach the CSV to the user notification.
What you want to accomplish is possible using built-in Gravity Forms and WordPress/PHP functions.
HI
I have the following code to attach documents in my functions.php file, if I wanted to add a file ID with the csv attached how would I amend the code so that it still sends these files and the csv to another form, for example form 1?
CODE in functions.php:
<?php
add_filter("gform_user_notification_attachments", "add_attachment", 10, 3);
function add_attachment($attachments, $lead, $form) {
if ( $form[ 'id' ] == 17 ) {
$doc = '/The-Membership-Rules.pdf';
} elseif( $form[ 'id' ] == 22 ) {
$doc = '/The-Membership-Rules.pdf';
} else {
$doc = '';
}
$upload = wp_upload_dir();
$upload_path = $upload["basedir"];
$attachments = array();
$attachments[] = $upload_path . $doc;
return $attachments;
}
?>
Thanks
Nic
Please begin a new topic in the regular support forums. We don't normally handle support in the pre-purchase forums. Thank you.