• Resolved rajh2350

    (@rajh2350)


    I have installed the gravityform lite plugin on website.
    I have one question, how we can send attach day all entries in the notification. Currently there is option to attach single entry.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author GravityKit

    (@gravityview)

    Hi @rajh2350, thanks for your question, but this isn’t the correct support form, since your question is related to another of our plugins, GravityExport Lite. In the future, please post questions there.

    There’s currently no way to attach a summary PDF. We recommend checking out Entry Automation by ForGravity for that feature.

    Thanks!

    Hi @rajh2350,

    Even though it isn’t possible to attach the file to a notification; it ís possible to download only the results for “today”. By appending ?start_date=today you’ll download the entries that were entered today (Since people can’t submit into the future).

    So for example: https://your-domain.tld/gf-entries-in-excel/3efa5111db96b8acba51abe8609fc9b316da9726b6db91ad022daed9cd104e98?start_date=today. (Learn more about filtering)

    Perhaps you can automate this download; or create an automated notification that simply provides this link.

    Hope this helps.

    Doeke (GravityKit)

    Thread Starter rajh2350

    (@rajh2350)

    Hi Doeke
    Thank you your reply. It works. I have created a cron job to send the notification daily.

    I have another question, is it possible to have the file name with daily-reports-{date}.csv ?
    Its working when we use GravityExport Save. But not with the GravityExport filters.

    Thanks

    Hi @rajh2350,

    That’s a very fair point. I added it to our backlog to add this to the other add-ons as well. Thanks!

    In the mean time; since you have GravityExport (pro) you can add the following snippet (by using the Code Snippets plugin or in your functions.php) to replace these parts on all add-ons.

    // Replace {DATE} / {YYYY} options on GravityExport Filters Add-on
    add_filter( 'gfexcel_renderer_filename', function ( string $filename ): string {
    	global $wp;
    
    	$feed = \GFAPI::get_feed( $wp->query_vars['gfexcel_download_feed'] ?? 0 );
    	$form = \GFAPI::get_form( $wp->query_vars['gfexcel_download_form'] ?? 0 );
    	if ( ! is_array( $feed ) || ! $form ) {
    		return $filename;
    	}
    
    	return \GravityKit\GravityExport\Save\Addon\SaveAddon::get_filename( $feed, $form );
    }, 100 ); // 100 because we want this after the regular hooks.
    • This reply was modified 1 year, 11 months ago by Doeke Norg.
    Thread Starter rajh2350

    (@rajh2350)

    Hi Doeke,

    I have another issue, the xlsx file format doesn’t work.
    When we download it, the document not open and show error.
    Error screenshot https://prnt.sc/UmcAhqfFWn-j

    Also we have some issue with the csv export too, it show some characters like in attached screenshot. https://prnt.sc/ELvmYXGTJ2W4

    Thanks.

    Hi @rajh2350,

    I want to help you out; but let’s move away from this ticket to do so. To help you debug these issues its easier for me to continue through email.

    Please contact me through doeke[at]gravitykit.com and send me an export of you gravity forms system report (System Status), and an export of a form that isn’t working (json output, no entries).

    We’ll take it from there.

    Kind regards,

    Doeke

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Attach daily entries in one notification’ is closed to new replies.