=== Multi-Step Form ===
Contributors: snehalpancholi
Tags: form builder, multi-step form, contact form, wizard, step form
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Build multi-step forms with a visual editor. Validates each step in the browser and stores submissions in the database.

== Description ==

Multi-Step Form lets you create beautiful, conversion-optimised multi-step forms directly from the WordPress admin. No coding required.

**Key Features:**

* Visual drag-and-drop form builder
* Supports text, email, textarea, select, radio, and checkbox fields
* Animated progress bar showing current step
* Client-side per-step validation before advancing
* Submissions stored in the database with full field data
* Admin email notifications on every submission
* Configurable success message per form
* Shortcode embedding with `[multi_step_form id="..."]`
* Submissions management page with pagination
* Lightweight — no jQuery, pure vanilla JS

**Field Types Supported:**

* Text input
* Email input (with format validation)
* Textarea
* Select dropdown
* Radio buttons
* Checkboxes

**Admin Features:**

* Create and manage unlimited forms
* Add, remove, and reorder steps
* Add, remove, and reorder fields within each step
* Set per-field placeholder, required flag, and options
* Drag-and-drop field ordering
* Configurable notification email address
* Configurable success message

== Installation ==

1. Upload the `multi-step-form` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Settings > Multi-Step Forms** to create your first form.
4. Copy the shortcode shown next to your form and paste it into any page or post.

== Frequently Asked Questions ==

= How do I embed a form on a page? =

Go to Settings > Multi-Step Forms, create or edit a form, then copy the shortcode displayed in the form list (e.g., `[multi_step_form id="my-form_abc123"]`) and paste it into your page content.

= Where are submissions stored? =

Submissions are stored in a custom database table (`{prefix}msf_submissions`). You can view, filter, and delete them under **Settings > Multi-Step Forms > Submissions**.

= Can I send submissions to a custom email address? =

Yes. In the form builder, set the **Notification Email** field to any email address. If left blank, it defaults to the site admin email.

= Does this plugin use jQuery? =

No. The plugin uses pure vanilla JavaScript (ES6+).

= What happens to data when I uninstall the plugin? =

All forms configuration, submissions table, and transients are removed on uninstall.

== Screenshots ==

1. Form builder admin interface
2. Multi-step form on the front end with progress bar
3. Submissions management page
4. Form with radio and checkbox fields

== Changelog ==

= 1.0.0 =
* Initial release
* Visual form builder with drag-and-drop fields
* Multi-step front-end form with progress bar
* Per-step client-side validation
* Database submission storage
* Admin email notifications
* Submissions management page with pagination
