=== Form Forge ===
Contributors: avakode
Donate link: https://avakode.com
Tags: forms, form-builder, ai, conditional-logic, contact-form
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.20
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Drag & drop form builder with conditional logic, webhooks, file uploads, anti-spam, and CSV export. Unlimited forms, 22 field types.

== Description ==

**Form Forge** is a fast, modern form builder. Build unlimited forms with a drag-and-drop builder, 22 core field types, conditional logic, generic webhooks, file uploads, anti-spam, and submissions with one-click CSV export — all in the free plugin, no form caps. Start from 168 ready-made templates or the included shortcode. Upgrade to Pro for AI form generation, payments, multi-step, and branded integrations.

= Free =
* Unlimited forms (no form caps)
* 22 core field types (text, email, number, select, checkbox, radio, file upload, etc.)
* Drag-and-drop form builder
* Conditional logic
* Generic webhooks (Zapier, Make, n8n, custom APIs)
* File uploads
* Anti-spam (honeypot, time-trap)
* Submissions dashboard + CSV export
* 168 ready-made templates (contact, registration, survey, booking, etc.)
* Shortcode embedding ([formforge id="X"])
* Email notifications (admin + autoresponder)
* Mobile-first responsive layouts

= Pro =
* AI form generation (describe → done)
* Multi-step forms with progress bar
* Conversational mode (Typeform-like one-question-at-a-time)
* Stripe payments
* Mailchimp / HubSpot / Google Sheets integrations
* Telegram / WhatsApp / Slack / Discord notifications
* Submission analytics

Part of the **Forge Suite** — bundle includes Lang Forge, SEO Forge, Field Forge.

== Installation ==

1. Upload `formforge` to `/wp-content/plugins/`, or install via Plugins → Add New.
2. Activate the plugin.
3. Go to **Form Forge → All Forms → New Form**.
4. Drop the shortcode (e.g. `[formforge id="1"]`) anywhere on a page or post.

== Frequently Asked Questions ==

= Can I import forms from Gravity Forms / WPForms? =

Migration tooling is on the roadmap. For now, the AI generation can recreate a form from a screenshot or description.

= Are webhook URLs validated for security? =

Yes — Form Forge rejects webhook URLs that resolve to private IP ranges (RFC1918), loopback, or cloud-metadata endpoints. The check uses `is_safe_url()` (per-plugin) and `Forge_Net` (shared SSRF helper).

= How does anti-spam work? =

Free tier ships honeypot + time-trap (form submitted in < 2s is rejected). Pro adds optional integrations with Cloudflare Turnstile and reCAPTCHA.

== Screenshots ==

1. Form builder (drag-drop)
2. AI form generator (Pro)
3. Conditional rules applied at submit (configured via import or AI)
4. Submissions list + CSV export
5. Notification configuration

== Changelog ==

= 1.0.20 =
* Fix: AI form generation now shows a clear reason when it can't run (license/credits needed, or the service is unreachable) instead of a generic "Unknown error".

= 1.0.19 =
* Security: the Google Account connection now starts via a one-time token, so the license key is never placed in a URL.

= 1.0.18 =
* WordPress.org compliance and licensing hardening.
* Pro entitlement is now resolved by the Form Forge Pro add-on; the free plugin bundles no licensing SDK.
* The Google integration SDK now loads only when the Pro Google Sheets feature is active.
* readme metadata cleanup.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.18 =
Licensing and WordPress.org compliance improvements.

= 1.0.0 =
Initial release.
