=== GF Chat Redirect ===
Contributors: id7studio
Author: ID7 Studio
Author URI: https://id7.com.br
Tags: gravity forms, whatsapp, redirect, form
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.1.0
License: GPLv2 or later

Redirects the visitor to WhatsApp with a pre-filled message after a Gravity Forms submission.

== Description ==

This plugin requires Gravity Forms (not included).

After a form is submitted, the visitor is redirected to a URL like
`https://wa.me/<number>?text=<message>`, with the message already
filled in using the data submitted in the form.

= Free vs. Pro =

This is the **free** version, with the following limits:

* 1 WhatsApp route, on at most 1 form on the site.
* The message always uses the default template (lists every filled-in
  field), with no template editing.
* No conditional logic (you can't have a different number depending on
  the value of a field, e.g. "Subject").
* A small signature is appended to the end of the message
  ("via GF Chat Redirect (free)").

The [Pro version](https://checkout.freemius.com/plugin/35794/plan/59110/) unlocks:

* Unlimited forms and unlimited routes per form.
* Conditional logic (a different number and message depending on a
  form field, e.g. "Subject").
* Message template editor with merge tags.
* Catch-all fallback route.
* Global default WhatsApp number.
* No message watermark.
* Support via email.

= Setup =

1. Install and activate Gravity Forms, if it isn't active yet.
2. Install and activate the "GF Chat Redirect" plugin.
3. Open the form you want. A new item called **WhatsApp Redirect**
   will appear in the form's settings menu — click it, then click
   "Add New".
4. Fill in:
   - **Name**: just for you to identify it in the list (e.g. "Contact").
   - **WhatsApp number**: numbers only, with country code and area
     code (e.g. 15555551234).
5. Save. Done — from now on, every submission of that form redirects
   the visitor to the WhatsApp number you set, with a ready-to-send
   message containing the submitted data.

== Frequently Asked Questions ==

= Does the visitor actually send the message themselves? =

Yes. The plugin only builds the WhatsApp link with the pre-filled
message (`wa.me`); the visitor still has to tap "Send" inside
WhatsApp/WhatsApp Web. No message is ever sent automatically by the
server.

= Can I use it on more than one form? =

Not in the free version — the limit is 1 route on 1 form. For more
forms, see the Pro version.

= Does it work with multi-page forms or conditional confirmations? =

Yes. The redirect replaces the form's final confirmation, regardless
of which conditional confirmation would otherwise have been shown.

== Changelog ==

= 2.1.0 =
* Free version: limit of 1 route on 1 form, fixed {all_fields}
  message, and a discreet signature in the message. Advanced features
  (multiple conditional routes, multiple forms, template editor) are
  now part of the Pro version.

= 2.0.0 =
* Added support for multiple routes per form (feeds) with conditional
  logic, each with its own number and message.

= 1.0.0 =
* Initial version (a single number/message per form).
