Ajax Simple Contact Form

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:

<?php echo do_shortcode('[ajax_contact_form]'); ?>

⚙️ 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.

Screenshots

  • Admin Settings — Email Settings tab
  • Frontend form — Default style
  • Frontend form — Bordered style

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.

FAQ

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.

Reviews

Read all 3 reviews

Contributors & Developers

“Ajax Simple Contact Form” is open source software. The following people have contributed to this plugin.

Contributors

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