=== Form Viewer ===
Contributors: snehalpancholi
Tags: forms, submissions, contact form 7, wpforms, gravity forms
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Unified form submission storage and viewer for CF7, WPForms, Gravity Forms, and custom forms.

== Description ==
Form Viewer captures and stores all form submissions from popular form plugins in one place. View, search, filter, and export submissions from the WordPress admin.

Features include:
* Automatic capture from Contact Form 7, WPForms, and Gravity Forms
* Custom form integration via WordPress action hook
* Searchable, filterable, and sortable submissions table
* Mark submissions as read/unread
* Bulk actions: mark read, delete
* CSV export with date range and form plugin filters
* Dashboard widget showing today's count, weekly count, and unread count
* AJAX-powered inline detail viewer — no page reloads
* IP address logging per submission
* Lightweight — no external dependencies

== Installation ==
1. Upload the `form-viewer` folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins menu in WordPress
3. Go to **Tools > Form Submissions** to view captured submissions
4. For custom forms, fire the action: `do_action('addlc_fsv_submission', 'Form Name', $fields_array, $ip)`

== Frequently Asked Questions ==

= Which form plugins are supported out of the box? =
Contact Form 7, WPForms, and Gravity Forms are supported automatically. Any other form plugin can be integrated using the `addlc_fsv_submission` action hook.

= How do I capture submissions from my own custom form? =
In your form processing code, fire: `do_action( 'addlc_fsv_submission', 'My Form Name', [ 'Name' => 'John', 'Email' => 'john@example.com' ], $_SERVER['REMOTE_ADDR'] );`

= Can I export submissions to CSV? =
Yes. On the Form Submissions page, use the Export CSV button. You can filter by date range and form plugin before exporting.

= Does this plugin send data anywhere? =
No. All submission data is stored locally in your WordPress database.

= What happens to the data when I uninstall the plugin? =
The `{prefix}fsv_submissions` database table is permanently dropped on uninstall. Export your data first if you need to retain it.

== Screenshots ==
1. Form Submissions list table with search, filter, and bulk actions
2. Inline detail panel showing all submitted fields for a single entry
3. Dashboard widget showing submission counts
4. CSV export panel

== Changelog ==
= 1.0.0 =
* Initial release
* Capture from Contact Form 7, WPForms, Gravity Forms
* Custom hook for any form plugin
* Searchable and filterable admin table
* AJAX inline detail viewer
* Bulk mark-read and bulk delete
* CSV export with filters
* Dashboard widget
