Gravity Forms Schedule Entries Export
This plugin is the add-on for the Gravity Forms plugin. With the add-on, you can set a scheduled task and export any Gravity Forms entries to the CSV file. Also, the file can be sent to the given email address list.
So if you have a form collecting user submissions, the add-on can send exported entries automatically to your email (by a schedule).
How it works?
Create a form on your website (using Gravity Forms plugin), then just collect information submitted by your customers. All users data are saved as entries.
On the following screenshot you can see the Test form and the form’s entries.
The example form has just three records. However, in the real form, you can get a lot of entries daily. Therefore you may want to schedule an email and receive it automatically with the attached file that includes the entries.
To do that just go to the Form Setting page and click on “Schedule Export Entries” tab.
You will see “Schedule Export Entries Feeds” page for the form. Just click on a “Add New” button and create a new task to export the entries automatically. Also you can see the “Current time” value on this page. It should help you to create task, because website current time and your local time on computer can be different. The plugin works with website time.
Please look at screenshots below there is an example of the new task Setting page.
You can set up to get the exports to your email. Also It’s possible to set several email addresses.
Also it’s possible to allow saving the export file on your server. Tod do that just set a export folder. By default plugin use the website root folder. You can change it. Once you save the changes, the plugin checks whether the folder is writable.
Please note you need save your task. After that you are done and your task will be executed on a schedule.
The new task Setting page Fields
As you can see in the previous screenshots, there are different fields to configure your task. Lets dicuss each one:
- Name – required field, enter some unique name to indetify your task.
- Export Schedule – required field, set how frequently the entries are exported and emailed..
- Custom Start Date – Set the custom start date when the first export should be done (for minute, hourly and daily schedules only)
- Export Time Frame – required field, set a time frame within which the entries should be selected..
- To Email Addresses – enter a comma separated list of email addresses you would like to receive the exported entries file.
- From Email Address – enter the email address you would like the exported entries file sent from.
- From Email Name – Enter the email name you would like the exported entries file sent from. You can leave it empty to use the default name.
- Message – enter a message for the export email.
- Form Fields – required feield, select the fields you would like to include in the export.
- Condition – set conditional logic that must be met before sending the export.
- Enable email CSV – send the email after the export is done.
- Save CSV on your server – save the export data on the server in a file
- Directory on your server – set a directory on your server when the export file should be saved; the path should be relative from your website root.
Linux Cron Job vs. WP-Cron
Have you ever noticed that your scheduled posts in WordPress are missing? Though WordPress has its own cron feature that dictates the scheduling of your blog’s posts and events, WP-cron is not a literal cron job.
Linux cron jobs can be controlled by the user, making certain that the items constrained by schedule are run appropriately. Also, for a high-traffic WordPress site, a Linux cron job can assist with reducing the chances of downtime by lowering the bandwidth on the server, thus using less server resources.
WP-cron is a virtual cron that only works when the page is loaded. WP-cron is first loaded by WordPress when a page is requested on the front or backend of a site at which point WP-cron displays the necessary page to the site visitor.
How to Replace WP-Cron With a Linux Cron Job
The best way to optimize the efficiency of your WordPress cron jobs is to disable WP-cron and set up a normal cron job through cPanel which will run every hour.
You can disable WP-cron by modifying the wp-config.php (located in the folder where WordPress is installed). Open the wp-config.php file, add a new line after <?php, then add the following code on the new line:
To set up a Linux cron job:
- Log into your cPanel.
- In the Advanced section, click Cron jobs.
- Under Add New Cron Job, select the time interval. We recommends that you do not set the interval lower than 15 minutes.
- Set the cron command to the following, replacing yourwebsite.com with your actual domain name:
wget -q -O - http://yourwebsite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
- Click Add New Cron Job to set the cron.
When exporting to CSV, I do not receive the emails? Why?If you have problem with getting the emails, please make sure you have enabled the Enable email CSV option. Also note the email will be sent if the export includes at least one entry. If you have checked all options, but emails are not received, please send the request to your hosting/server provider and ask why the default WordPress email function doesn’t work on your account. They often able to solve your issue very fast.
How to install WooCommerce Gravity Forms Schedule Entries Export plugin?
Thank you so much for reviewing this item. We’d be glad to help you if you have any questions relating to this item. Also do rate the plugin if you like it
Version 1.0.0 - 07 Dec 2016 ### Initial release
Version 1.0.1 - 06 Mar 2017 ### 1) Added new item "Yearly" for the "Time Frame" drop-down selection ### 2) Fixed minor bugs
Version 1.0.2 - 06 July 2017 ### 1) Fixed multisite export bug ### 2) Fixed email headers bug ### 3) Fixed empty email body bug
Version 1.0.3 - 21 Aug 2017 ### 1) Fixed bug in search criteria filter applying on export ### 2) Fixed minor bugs
Version 1.0.8 - 27 Oct 2017 ### 1) Fixed exporting result bug, the result was limited by 20 items, now all exported items are included to the export file ### 2) Added GFSEE_DISABLE_EXPORT constant which allows to disable exporting function in the plugin. ### 3) Added additional information to the plugin feed's settings: Server time and Next Export time. ### 4) Fixed a bug causing wrong exporting result in some cases ### 5) Added new option to the plugin settings "Export Time Frame". Now you can set "Export Time Frame" and "Export Schedule" separately.
Version 1.1.1 - 13 Apr 2018 ### 1) Fixed a conflict with default Gravity Form export feature ### 2) Added a feature to set a folder for the export file ### 3) Added an option to disable email sending when exporting is done
Version 1.2.1 - 17 May 2018 ### 1) Added new feature to set date and time for first exporting (for minute, hourly and daily schedules only) ### 2) Fixed minor bugs
Version 1.2.5 - 21 July 2018 ## Fixed bugs
Version 1.3.2 - 20 Dec 2019 ## Fixed PHP notices bug ## Fixed a bug related with the exported files having the same names ## Fixed parallel exporting bug ## Fixed bug with default GF export file which should be unset once export is finished; ## Added a new "Export" column on the Forms List page. The columns shows the forms having at least one export task;
Version 1.3.5 - 5 Apr 2020 ## Fixed bug with the hourly schedule option, it caused the export done every minute. ## Added more debug information to the log when email errors occur ## Fixed the bug when an email is sent with the empty export file.
Version 1.4.3 - 11 June 2020 ## Fixed the active state bug. A scheduled task continued working even a feed's state was inactive. ## Added a backend notification message when the real server cron is disabled ## Fixed some WPML strings ## Added a hook that fires when the export file name is generated: gfexportentries_get_name_prefix ## Fixed the bug when an email is sent with the empty export file. ## Fixed a rare bug with the next_export_time field. ## Added a new behavior - now the "Directory on your server" field is filled automatically ## Updated the code that adds compatibility with gp_nested_forms ## Adds a new "From Email Name" field. If the value is not set, the default is used instead: "Wordpress <email specified>"
Version 1.4.4 - 15 June 2020 ## Fixed the bug causing receiving of the empty export file
Version 1.4.7 - 04 July 2020 ## Fixed a bug occurring when the export start date is set for such schedules as weekly, monthly, yearly. ## Fixed a bug occurring when the next export date calculation is done wrong if the next export data is set less than the current date. ## Fixed a bug with the export toggle button.
Version 1.5.0 - 01 May 2021 ## Added support for Gravity Forms v2.5 ## Fixed code bugs related to PHP 7.1+ ## Code refactoring ## Simplified date & time scheduling for export tasks ## Replace datetimepicker library with a more maintained version
Version 1.5.1 - 08 May 2021 ## Fixed; wrong calculation of the next export date if monthly or yearly periods are set in Export Schedule