=== Ajax Simple Contact Form === Contributors: mamunitiw Tags: contact form, ajax, email, contact, simple Requires at least: 5.0 Tested up to: 6.8 Requires PHP: 7.4 Stable tag: 2.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html A simple, lightweight AJAX contact form with no page reload. HTML emails, reply-to, spam protection, custom fields, and 3 form styles. == Description == **Ajax Simple Contact Form** is a lightweight, easy-to-use contact form plugin that submits without reloading the page. Just install, configure, and add `[ajax_contact_form]` to any page or post. Version 2.0 is a complete rewrite with modern features, improved security, and full WordPress 6.8 compatibility. = ✨ What's New in v2.0 = * **HTML email template** — professional, beautifully formatted emails in your inbox * **Reply-To support** — clicking reply in your email client goes directly to the sender * **CC email** — send a copy to an additional address * **Honeypot spam protection** — lightweight, no API key required * **Phone field** — optional, with required toggle * **Subject field** — optional, with required toggle * **Custom field labels** — rename any field * **3 form styles** — Default, Minimal, Bordered * **Button color picker** — match your brand * **Border radius control** — square, rounded, or pill * **Inline validation** — errors show instantly without page reload * **Multiple forms** — place shortcode on multiple pages, all work independently * **No jQuery dependency** — pure vanilla JS, faster loading * **PHP 8.x compatible** * **WordPress 6.8 compatible** = 📋 Shortcode = Place anywhere in posts, pages, or widgets: `[ajax_contact_form]` Or in a PHP template: `` = ⚙️ Admin Settings = All settings under **Settings → Contact Form**: * **Fields** — Toggle name, phone, subject fields. Set required status. Enable honeypot spam protection. * **Email** — Set recipient, email subject, reply-to, CC address, success/error messages. * **Labels** — Customize all field labels and button text. * **Style** — Choose form style, button color, text color, border radius. == Installation == 1. Upload the plugin to `/wp-content/plugins/ajax-simplecontact-form/` or install via **Plugins → Add New**. 2. Activate the plugin. 3. Go to **Settings → Contact Form** to configure. 4. Add `[ajax_contact_form]` to any page or post. == Frequently Asked Questions == = Does it submit without page reload? = Yes. The form uses AJAX — submissions happen instantly without any page refresh. = Is it compatible with any theme? = Yes. The form uses minimal, theme-neutral styles that blend with any WordPress theme. = Can I have multiple forms on different pages? = Yes. Add `[ajax_contact_form]` to as many pages as you like. Each form works independently. = Does it protect against spam? = Yes. The honeypot method is enabled by default — it catches bots without requiring a CAPTCHA or API key. = Can I customize the form fields? = Yes. You can show/hide the name, phone, and subject fields, set which are required, and rename all labels under Settings → Contact Form. == Screenshots == 1. Admin Settings — Fields & Spam Protection tab 2. Admin Settings — Email Settings tab 3. Frontend form — Default style 4. Frontend form — Bordered style 5. HTML email received in inbox == Changelog == = 2.0.0 = * Complete rewrite for WordPress 6.8 and PHP 8.x compatibility * Added beautiful HTML email template * Added Reply-To header — replies go back to sender * Added CC email support * Added honeypot spam protection * Added optional phone field with required toggle * Added optional subject field with required toggle * Added custom field labels * Added 3 form styles: Default, Minimal, Bordered * Added button color and border radius controls * Added inline field validation with instant error messages * Added support for multiple forms on same site * Removed jQuery dependency — pure vanilla JavaScript * Removed dead demo and YouTube links * Improved security: nonces, sanitization, escaping throughout = 1.0 = * First Release == Upgrade Notice == = 2.0.0 = Major update with new features and full WordPress 6.8 / PHP 8.x compatibility. Visit Settings → Contact Form after upgrading to configure new options.