=== AwesomeFor.ms ===
Contributors: awesomefordotms
Tags: forms, contact form, survey, import, migration
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed AwesomeFor.ms forms and import your forms and responses from Formidable, Gravity Forms, WPForms, Elementor Pro or Contact Form 7.

== Description ==

AwesomeFor.ms is an online form builder hosted in France. This plugin connects a WordPress site to an AwesomeFor.ms account.

* Connect the site with your AwesomeFor.ms account (OAuth with PKCE, no password stored).
* Show a form with the AwesomeFor.ms block or the `[awesomeforms id="..."]` shortcode.
* List, create, publish and unpublish your forms from the WordPress admin.
* Read the responses in the WordPress admin and see your latest forms in a dashboard widget.
* React to new responses in your theme or plugin with the `awesomeforms_new_response` action (plans with webhooks).

= Import from your current forms plugin =

Importing forms and entries is free on every plan; uploaded files count toward the storage of your plan, and the plugin checks that they fit before it starts. Before you validate, AwesomeFor.ms compares every count (responses, files, fields) with your site, and you can cancel at any time and start over. Afterwards the imported form can replace the original one in your pages: shortcode, form block and Elementor widget are swapped, with undo.

* **Formidable Forms**: forms, entries, repeaters, payments and uploaded files.
* **Gravity Forms**: forms, entries of every status (spam, trash and saved drafts too), stars, notes, payments and uploaded files.
* **WPForms**: forms, entries of every status, payments and uploaded files. WPForms Lite keeps no entries, so only the form is imported.
* **Elementor Pro**: forms and their submissions, including those of forms since deleted, trashed submissions and uploaded files.
* **Contact Form 7**: forms, and the entries that Flamingo or CFDB7 saved (spam and trash included) with their files.

The import also runs without a browser: `wp awesomeforms migrate`, then `wp awesomeforms report`, `validate` or `cancel`.

Responses stay on AwesomeFor.ms: the plugin reads them live and never copies them into the WordPress database.

= Developers =

`do_action( 'awesomeforms_new_response', $response, $form, $columns )` fires once for each new response to a published form. The plugin checks AwesomeFor.ms every five minutes with WP-Cron, only when something listens to the action, and only keeps the id of the last response seen per form. `$response` holds `id`, `submitted_at` and one value per column key; `$columns` gives each key with its label and type.

    add_action( 'awesomeforms_new_response', function ( $response, $form, $columns ) {
        error_log( $form['title'] . ': ' . $response['id'] );
    }, 10, 3 );

= External service =

This plugin relies on the AwesomeFor.ms service (https://awesomefor.ms). It sends requests to it when you connect the site, list or change your forms, when you import Formidable, Gravity Forms, WPForms, Elementor Pro or Contact Form 7 forms (their fields, entries, uploaded files and the IP addresses the plugin recorded are sent to your AwesomeFor.ms account), and when a visitor's browser loads an embedded form. On the free plan, the embedded form shows a "Made with AwesomeFor.ms" mention, which paid plans can remove. Terms: https://awesomefor.ms/legal/terms. Privacy: https://awesomefor.ms/legal/privacy.

== Frequently Asked Questions ==

= Is the import really free? =

Importing forms and their entries is free on every plan. Uploaded files are stored on AwesomeFor.ms and count toward the storage of your plan: the free plan has none, so an import with files needs a paid plan, and the plugin tells you before it starts.

= Which plugins can I import from? =

Formidable Forms, Gravity Forms, WPForms, Elementor Pro (forms widget) and Contact Form 7 with Flamingo or CFDB7. The source plugin does not need to be active, only its data has to be in the database.

= Do I lose my entries if I import? =

No. The import only reads your site. It reconciles what it sent with what the source holds and shows you any gap before you validate; cancelling removes what was imported from your AwesomeFor.ms account, and your WordPress data is never modified until you choose to replace the forms in your pages.

= Does the plugin store my responses in WordPress? =

No. Responses are read live from AwesomeFor.ms and never copied into the WordPress database.

== Screenshots ==

1. Choose the forms to import: every entry and uploaded file comes along.
2. Before you validate, AwesomeFor.ms compares every count with your site.
3. The imported form replaces the original one on your pages, with undo.
4. Your AwesomeFor.ms forms in the WordPress admin, with their shortcode.
5. Responses read live from AwesomeFor.ms, never copied into WordPress.
6. The AwesomeFor.ms block in the editor.
7. The form on your site.

== Changelog ==

= 1.0.0 =
* Importing forms and entries is free on every plan.
* Import of Gravity Forms forms and entries (every status, saved drafts, stars, notes and payments) and uploaded files.
* Import of WPForms forms, entries (every status), payments and uploaded files.
* Import of Elementor Pro forms and their submissions, including those of deleted forms.
* Import of Contact Form 7 forms and the entries Flamingo or CFDB7 saved (spam and trash included), with their files.
* Every source gets the same reconciliation and switchover (shortcode, block, Elementor widget), and runs with WP-CLI too.
* Before an import starts, the plugin checks that the files fit in the storage of your plan.
* Formidable import: the choices of radio, checkbox and select fields are read from the field's own choices.
* The embedded form is centred in the content column of block themes, and the block applies its wide and full alignments.

= 0.2.1 =
* Formidable import: repeater rows saved without their main entry (failed or abandoned submissions) are imported as incomplete responses and counted in the reconciliation, instead of being left out.
* Formidable import: files are sent several at a time, and the import pauses instead of stopping when the service asks to slow down.

= 0.2.0 =
* Import of Formidable forms, entries and files, with a reconciliation before validation.
* Switchover: the imported form replaces the Formidable form on pages, blocks and Elementor layouts, with undo.
* Responses read live in the admin, dashboard widget, awesomeforms_new_response action.

= 0.1.0 =
* Connection, block, shortcode, form list, creation and publication.
