Gravity Forms Autocomplete (+address field) icon

Gravity Forms Autocomplete (+address field)

Hot or Not
Gravity Forms Autocomplete (+address field)

Description

Gravity Forms Autocomplete (+address field)

This plugin is an add-on for Gravity Forms that enables an autocomplete field feature. So it suggests possible completions for the field that the user has started typing in. Autocomplete simplifies and speeds up a form filling process and make your users save time by finding necessary data with suggestions.

Please note, you can choose a source for suggestions. And currently it supports several source’s types: ‘WordPress’, ‘ URL ’, ‘Manually’ and ‘Address’. Please fill free to advise us new source type and it’ll be added in a next release.

Please check the plugin demo here: GF Auto Complete Demo

How it works?

For example there is a form called “Test” and you’re going to add an autocomplete field to this form. You need just put the autocomplete field on the form.

When the field will be added, make double click on it to show the field’s settings. Choose “Manually” for “Where to Get Options?” setting and then a new setting “Enter Data for Autocomplete” will be shown. Lets put some data into it like on a screenshot below.

Please note, there is a checkbox “Allow adding new option”, tick it to let users adding new options to Autocomplete data on the frontend.

To save the new field in the form settings just press an “update form” button. After that the new field will appear on the frontend.

Please note, the new field has an “untitled” label because this is a default field label in Gravity Form. It can be changed easily in the field’s settings. Also the form should be added to some wordpress page like in a example above otherwise it will not be displayed on your website.

Where To Get Options?

Use this setting to set a source of the options (suggestions). Please note there are several types of source: ‘WordPress’, ‘URL (json)’ and ‘Manually’. Below each one will be described.

  1. The ‘Manually’ option is used when it’s required to set the options manually (like in an example above).
  2. The ‘WordPress’ option is for using of the different WordPress sources such as: users, pages, posts, categories and etc.
  3. The ‘URL (json)’ gets options for autocomplete using AJAX from an url which returns data in json format (like: value1, value2, value2 and etc.).
  4. The ‘Address’ gets options for autocomplete using the Google Places suggest API.

Please look at the screenshots where these options are in the setting.

If you choose the “WordPress” as source for your options, then the post title is used in the suggestion list. Please note: the post ID is saved in the entry data. If you want to save another post attribute instead (for example: post_title, post_name, etc. or save the a custom post field), it can be done using special plugin addon. Contact our support center to purchase that addon.

Also, check an example of JSON file:

{“1” : “value1”, “2” : “value2”, “3”: “value3”, “4” : “value4”, “5” : “value5”, “6” : “value6”, “7” : “value7”, “8” : “value8”}

By default, the suggestion list includes the values: “value1”, “value2”, “value3” etc.

In case if you want to use the keys instead (“1”, “2”, “3” etc), then please activate the “Use JSON keys as field value” option

How to activate the address autocomplete?

You need set the source for the suggestions to ‘Address’.

In certain cases google browser API key may be required. In that case please obtain the google browser API key from and add it to the settings

Please ensure you enable the following APIs in the Google:

Check the form on the frontend. Your address field should be turned to Autocomplete.

Method 1:

Method 2:

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

Change Log

Version 1.0.0 - 22 Dec 2016
### Initial release

Version 1.0.1 - 13 Jan 2017
### New feature letting the user store the value that not in the autosuggest list.  The function is applicable for a manually created autosuggest list.

Version 1.0.3 - 07 Mar 2017
### New feature letting the user to helping your users to enter their address with the Google Places suggest API.
### A lot of bugs fixed

Version 1.0.6 - 07 July 2017 
### Fixed a multiple address fields bug
### Fixed a placeholder bug, updated an autocomplete javascript
### Fixed minor bugs with address autocomplete feature
### Moved the javascript to the footer

Version 1.0.8 - 18 Aug 2017 
### Added ajax method for getting values for auto-complete field's suggestions. Now it's possible to use large data as an autocomplete field source.
### Fixed minor bugs

Version 1.0.9 - 18 Dec 2017 
### Improved json file supporting. Now it's possible to use external url to JSON-file for suggestions
### Updated js autocomplete library. The plugin has been switched to select2 library (  ) 
### Fixed minor bugs

Version 1.1.4 - 30 Apr 2018 
### Added multi-value mode
### Fixed a bug occurring when several auto-complete address fields are placed on the same page of the form
### Switched to CDN versions of select2 libraries
### Added new routing field types "autocomplete" 
### Fixed a bug occuring when user source type has been chosen  for the autocomplete field
### Added a little rate limiting (250ms) between ajax calls; 
### Added the search terms to the JSON request 
### Fixed minor bugs

Version 1.5.5 - 15 Dec 2018 
### Fixed bug with the placeholder option
### Fixed format for address autocomplete field; Now address number goes before the street name
### Fixed the conditional logic for auto-complete field
### Fixed the bug with the city field; it was not populated with appropriate value in address-autocomplete mode
### Fixed the bug with multiple values of autocomplete field; now entry contains all values and it's possible to edit them on Entry edit page.
### Fixed a bug related with WMPL compatibility  
### Fixed a compatibility bug with Gravity View plugin
### Fixed minor bugs

Version 1.5.9 - 5 Apr 2019
### Fixed the bug with gform_field_value filter
### Fixed a bug with l35 js array
### Fixed a bug with required state for address autocomplete field
### Fixed the compatibility bug with new GF version 2.4
### Fixed minor bugs

Version 1.6.1 - 20 Jul 2019
### Added an ability to add a new option for auto-complete sources types and fixed a bug with js
### Fixed a bug with nested forms
### Fixed a bug with the dropdown parent select2 option
### Added the autocomplete field messages to a language file 
### Improved and optimized the plugin code
### Fixed minor bugs

Version 1.6.5 - 11 Jan 2020
### Improved a function looking for matches in suggestions for the autocomplete field with the JSON data source.
### Added an ability to use a JSON key as a value for an autocomplete field when JSON is set as the autocomplete source.
### Fixed BOM symbol bug in some plugin files
### Added a feature to test the connection to given JSON URL right in edit autocomplete field interface.
### Fixed minor bugs

Version 1.6.8 - 19 Mar 2020
### Fix json bug
### Fix the bug occurring when several autocomplete fields with the same data source are added on the same page
### Fix minor bugs

Version 1.7.2 - 04 July 2020
###  Added a new two inputs (address name, address street number) for the address autocomplete mode; both input values are available in the entry data
### Added the field_use_first_char option for JSON source type. It changes the comparing method in searching for user input through JSON suggestions list.
###  Added some hooks in the plugin code: 
- gfautocomplete_field_input_value_html
- gfautocomplete_inline_js_on_page_render
- gfautocomplete_load_fields_settings
- gfautocomplete_add_custom_settings
### Fixed a bug with autocomplete field width
### Fixed minor bugs

Version 1.7.3 - 19 July 2020
###  Fixed a bug in javascript code (comma-js-bug)
### Fixed a bug with manual autocomplete field
### Added an ability to make a search in JSON keys instead of values
###  Added a new hook in the plugin code: 
- gfautocomplete_address_parts_after

Version 1.7.6 - 21 Sept 2020
###  Fixed a bug when entry value is not saved
### Added the German translation
### Added the field_min_input_len option to the field settings

Version 1.8.2 - 21 Jan 2021
### Updated JavaScript select2 library to the newest version 
### Code refactoring and integration with new select2 library
### Fixed issues with placeholder
### Fixed minor bugs

Version 1.8.3 - 29 May 2021
### Fixed a rare bug occurring with the curl module 

Version 1.8.4 - 6 June 2021
### Fixed bug: re-init google map script for the address autocomplete field if it's loaded in a form using shortcode with ajax parameter

Version 1.8.6 - 20 December 2021
### Added new option to set the maximum number of items which can be selected in a multi-value mode. If the value of this option is less than 1, the number of selected items will not be limited.
### Refactor of the field settings page
### Updated select2 library to the latest version. Old version of the library caused the conflicts with Elementor. 

Version 1.8.8 - 18 March 2022
### Fixed quotes handling in the manual data source
### Fixed bug: Now if you enable "Allow adding new option" and choose WordPress as autocomplete data source, a new post is created on form submission

External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.

Gravity Forms Schedule Entries Export icon

Gravity Forms Schedule Entries Export

Hot or Not
Gravity Forms Schedule Entries Export

Description

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 the Gravity Forms plugin), then just collect information submitted by your customers. All users data are saved as entries.

In 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 the website’s current time and your local time on the 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 identify 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 a 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 to file sent from.
  • From Email Name – Enter the email name you would like the exported entries to file sent from. You can leave it empty to use the default name.
  • Message – enter a message for the export email.
  • Form Fields – required field, 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 to 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.

  1. Disable wp-cron.php 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: define('DISABLE_WP_CRON', true);
  2. Disable wp-cron.php
  3. 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 recommend 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 - >/dev/null 2>&1
    • Click Add New Cron Job to set the cron.
    In order to test out the new cron, simply wait for the elapsed time period for the cron to run. In the event that the cron does not run, please review the steps listed above to ensure that you have completed all steps correctly.

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.

Change Log

Version 1.5.3 - 22 Dec 2022
## Add compatibility with Gravity Form 2.6.*;
## Refactor plugin code;
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
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 schedule for export tasks
## Replace datetimepicker library with a more maintained version
Version 1.4.7 - 04 July 2020
## Fixed a bug occurring when the export start date is set for such schedules as weekly, monthly, or yearly.
## Fixed a bug occurring when the next export date calculation is done wrong if the next export data is set as less than the current date.
## Fixed a bug with the export toggle button.
Version 1.4.4 - 15 June 2020
## Fixed the bug causing receiving of the empty export file

External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.