=== Gravity Forms to Brevo Add-On ===
Author: WP connect
Author URI: https://wpconnect.co/
Contributors: wpconnectco, pskli, bryanparmentelot
Tags: form integration, sendinblue, brevo, gravity forms, marketing
Requires at least: 5.5
Tested up to: 6.7
Tested with Gravity Forms up to: 2.9.5
Requires PHP: 7.0
Stable tag: 2.7.0

Connect Gravity Forms to Brevo (Sendinblue). Sync form fields with Brevo attributes and automatically generate contacts in specified lists.

== Description ==

Connect the awesome WordPress Gravity Forms plugin to the relationship marketing platform Brevo. With this game-changing add-on, you can link any Gravity Forms field with Brevo attributes. When validating the form, you generate a contact in the selected list(s) with all the correct attributes according to the information entered.

== Features == 

= Add and manage multiple feeds =
* Create as many forms as you want
* Customise your options for each form

= Map attributes with any field =
* Select the fields you wish to extract from Brevo, your contact is directly created or updated in Brevo

= Choose one or several lists where you want to send data =
* Select the destination list(s) for each of your feeds

= Activate a double opt-in field =
* Identify a higher level of interest by activating (or not!) the double opt-in option and choose the fitting template for the confirmation email.

= Add conditions, actions & filters =
* A joy for developers! Select which contacts will be added to your lists by creating simple – or advanced – conditions.

== Installation ==

1. Upload plugin files to your plugins folder

2. Activate the plugin on your WordPress Admin panel

3. Go to the Gravity Forms settings page (under Forms > Settings > Brevo

4. Enter the information requested by the plugin: license and Brevo API key

5. Click Save Settings

6. Create your form then go to Settings > Brevo

7. Follow on-screen instructions for integrating with Brevo


== How does it work? How to use it? ==

1. Create a form with at least an e-mail field (don’t forget the consent field)

2. Go to Brevo section (in Brevo Feeds tab) and click on "Add New" to create a new feed.

3. Map the fields of your Gravity forms with your Brevo's contact attributes

4. Choose the Brevo's list(s) where the contacts should be added

5. Activate Double opt-in if needed: select an email template and redirection page

6. Add Conditional logic if needed

7. Click on “Save settings”


== Frequently Asked Questions ==

= What is Brevo? =
Brevo is a powerful all-in-one marketing platform. Combining many powerful features, a competitive pricing, and a very good deliverability thanks to the proprietary Cloud-base infrastructure, Brevo managed to convince thousands of companies to use the platform for their newsletters, automatic emails or SMS. Brevo is available in 5 languages: English, Spanish, French, Italian, Brazilian.

= Why do I need a Brevo account? =
Gravity Forms Brevo Add-on uses Brevo’s API to send data. Creating an account on Brevo is free and takes less than 2 minutes. Once logged in your contact, you can get the API key [from this page](https://account.brevo.com/advanced/api).

= Do I have to pay to use the add-on and send emails? =
Our add-on costs $30 including updates and support during one year. Brevo proposes a free plan with 300 emails/ day. If you need to send more than 300 emails/day, visit [Brevo pricing page](https://www.brevo.com/pricing/).

= How do I synchronize my lists? =
You don't have to do anything, the synchronization is automatic. Make sure you have created your lists and Brevo attributes before linking them to your form fields. If you don\'t see it, wait for one minute. For performance reasons, your Brevo list(s) and attribute(s) are cached for one minute.

= How do I map phone numbers with SMS? =
To be able to map the phone numbers of your users you have to configure the phone field in international format.

= How can I get support? =
If you need some assistance, open a ticket on our Support center at [https://support.wpconnect.co](https://support.wpconnect.co/)


== Screenshots ==

1. Plugin activation

2. Add a new feed

3. Fields mapping


== Changelog ==

= 2.7.0 =
* Feature: Add a button to enable/disable sending complete entries
* Feature: Add support for the "Multiple Choice" attribute
* Fix: Corrected text strings in the source code
* Fix: Load load_plugin_textdomain call too early
* Fix: Partial entries now correctly send complex fields
* Fix: Note creation is now compatible with complex Gravity Forms fields
* Improvement: Updated phrasing in the "Requirements" section

= 2.6.0 = 
* Feature: Add support for Gravity Forms "Partial Entries" 
* Feature: Display error message when the Brevo API is inaccessible
* Fix: Fields missing when using the conditional logic feature
* Compatibility with WordPress 6.7

= 2.5.0 =
* Compatibility with WordPress 6.6
* Feature: Duplicate a feed

= 2.4.0 =
* Feature : Capabilities needed to access the add-on form settings page

= 2.3.0 =
* Feature: Note Brevo for contacts without double opt-in
* Fix: PHP deprecated
* Compatibility with WordPress 6.5

= 2.2.0 =
* Feature:: Expired or disabled license info in the plugin list
* Fix: Ability to select disabled sub-fields

= 2.1.0 =
* Feature: "emailBlacklisted" parameter when creating a contact
* Fix: Convert GF field values to text values for Brevo attributes of type text
* Compatibility with WordPress 6.4

= 2.0.0 = 
* Improvement: Brevo name to Brevo
* Compatibility with WordPress 6.3.1

= 1.3.0 =
* Feature: Disabled the add-on if Gravity Forms is not installed
* Feature: Switch between the free version and the pro version
* Feature: Hide API key and license
* Feature: Mapping Category SIB feat Single Select GF
* Improvement: Sendinblue name to Brevo

= 1.2.5 =
* Feature: Settings links
* Feature: Warning message when you checked the Double Opt-In option without selecting a list
* Feature: Indentation checkbox fields
* Feature: Text information when the Double Opt-In box is checked
* Improvement: Name of the plugin
* Fix: Translation files

= 1.2.4 =
* Feature: New tooltips
* Feature: Warning message when email field is not mapped
* Improvement: Name of the plugin

= 1.2.3 =
* Fix: Phone number map with SMS field
* Fix: API error 500 responses 

= 1.2.2 =
* Fix: Consent field
* Fix: Translation files

= 1.2.1 =
* Bug fixes and variables

= 1.2.0 =
* Improvement: License management system upgrade

= 1.1.0 =
* Feature: New tooltips
* Feature: Informative message when no list found
* Improvement: Configuration tooltips
* Improvement: Name and descriptions of the Add-on

= 1.0.0 =
* Initial release


== Support ==

If you need support, open a ticket on our Support center at [https://support.wpconnect.co](https://support.wpconnect.co/).


== Troubleshooting ==

If you generate a list while creating an unvalidated feed, an error may pop up during the process. Validate your feed anyway before reloading the page. Your list will appear. You can select it again and validate your feed.
To avoid the inconvenience, create your list before your feed!
Please make sure all lists and Brevo attributes are generated before liking them with the various fields of the form. If you can’t see them, wait 1 or 2 minutes. Your Brevo list(s) and attribute(s) are cached for 60 seconds for optimal performance.
