Spicy Forms

By wpspices

0+ active installationsVersion 0.0.3

A modern, fast, and accessible contact form block for the WordPress Block Editor with zero-configuration spam protection.

Description

Spicy Forms is an intuitive, high-performance form block built natively for the WordPress Block Editor (Gutenberg). It allows you to build clean, responsive contact forms in seconds without dealing with shortcodes, third-party cloud dependencies, or intrusive upsell banners.

Built specifically for the native WordPress Block Editor, Spicy Forms leverages the modern WordPress Interactivity API for instant client-side validation and async form submission without page reloads.

Key Features

  • 11 Native Field Types: Text, Email, Phone number (with ISD country code), Website URL, Number, Multiline Textarea, Dropdown Select, Radio choices, Checkboxes, Date picker, and Privacy Consent agreement.
  • Instant Starter Presets: Choose a 1-column or 2-column layout preset with a single click to start immediately.
  • Responsive Column Layouts: Easily adjust field widths (100%, 50%, 33.3%, 25%) directly in the block controls for side-by-side fields on desktop with automatic mobile stacking.
  • Automatic Style Synchronization: Customize the typography, border radius, or colors on one field, and all matching sibling fields in the form update synchronously.
  • WordPress Interactivity API: Smooth client-side validation with real-time feedback, accessible focus management, and async submission without page reloads.
  • Multi-Layer Zero-Config Anti-Spam: Built-in cryptographic decoy honeypot and timing gate protection—no API keys, CAPTCHAs, or third-party accounts required.
  • Secure Server-Side Routing: Email notification routing is securely handled on the server from authenticated form settings, protecting against email relay abuse.
  • Reusable Across Pages: Full support for WordPress core Synced Patterns (wp_block). Edit a form once and update it everywhere.
  • Accessible by Default: Built with WP_HTML_Tag_Processor to wire dynamic aria-labelledby, aria-describedby, and role="alert" attributes to ensure full compliance with WCAG standards.
  • Zero Database Bloat: No unnecessary custom database tables. Cleanly delivers submissions to your inbox with an in-flight safety buffer in wp_options.

Installation

  1. Upload the spicy-forms folder to the /wp-content/plugins/ directory, or install it directly via the WordPress Plugins menu.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. In any post, page, or template, type /spicy-form or search for Spicy Forms in the block inserter.
  4. Choose your starting layout (1-column or 2-column) and start collecting inquiries!

FAQ

Why am I not receiving form submission emails?

If form submission emails are not arriving in your inbox, this is almost always due to how your web server is configured to deliver mail:
1. Server Mail Restrictions: Many shared web hosts disable or restrict the standard PHP mail() function used by WordPress core (wp_mail()).
2. Spam Filtering: Emails sent directly from a web server without proper authentication (SPF, DKIM, DMARC) often get marked as spam or blocked completely by email providers like Gmail, Yahoo, or Outlook.
3. The Solution: We strongly recommend installing a reputable SMTP plugin (such as WP Mail SMTP, FluentSMTP, or Post SMTP) and connecting it to a dedicated transactional email service (such as SendGrid, Mailgun, Brevo, or Amazon SES). This ensures 100% reliable inbox delivery.
4. Safety Buffer: Spicy Forms maintains an in-flight safety queue in wp_options so submissions are buffered while transit is attempted and not lost immediately if the server fails to dispatch.

How do I change where form submission emails are sent?

  1. In the Block Editor, click on the outer Form block container.
  2. Open the block settings sidebar (Inspector) on the right side of the screen.
  3. Scroll down to the Email Notifications section.
  4. In the Recipient Email (To) field, enter the email address where you want to receive inquiries.
  5. If left blank, Spicy Forms automatically routes submissions to the site administrator email set in Settings > General.
  6. You can also customize the email subject line and configure which field is used for the visitor’s Reply-To address.

How does the built-in spam protection work? Do I need a CAPTCHA?

No CAPTCHA or external API keys are required! Spicy Forms protects your forms using a multi-layer zero-configuration defense system:
1. Cryptographic Stealth Decoy (Honeypot): The plugin dynamically generates an invisible honeypot field using site-specific cryptographic hashing (hash_hmac). Automated bots detect and fill this field, but human visitors cannot see it. Any submission with this field filled is rejected instantly.
2. Timing Human Gate: Automated headless scripts typically fill and submit forms in fractions of a second. Spicy Forms measures the submission duration and filters out submissions that occur under 3 seconds.
3. This multi-layer defense catches the vast majority of automated spam without burdening your real visitors with frustrating image puzzles or CAPTCHAs.

Does Spicy Forms store submissions in the database?

To keep your WordPress database lean, performant, and completely free of bloat, Spicy Forms does not create permanent custom database tables. Submissions are dispatched directly to your configured email address. A temporary safety buffer (capped at 100 entries FIFO) is kept in wp_options only while transit is in-flight and automatically cleared as soon as the email sends successfully.

Can I customize the Submit button?

Yes! Click directly on the Submit Button inside the form in the Block Editor canvas. You can customize the button label, text color, background color, border radius, width, and alignment using native WordPress block style controls.

Can I redirect visitors to a Thank You page after submission?

Yes. Select the outer Form block, open the Inspector sidebar, and locate the Submission Action setting. Choose Redirect to URL instead of displaying an inline message, then enter your desired Thank You page URL.

Can I use the same form across multiple pages?

Yes. Select your form block, click the three-dots options menu in the block toolbar, and choose Create pattern with Synced toggled on. You can then insert that Synced Pattern on any number of pages or templates. Whenever you make an edit, it automatically updates everywhere.

Is Spicy Forms compatible with page caching plugins?

Yes, completely. Because form submissions and validations are handled via the WordPress REST API and the Interactivity API, Spicy Forms works reliably on fully cached sites (such as WP Rocket, LiteSpeed Cache, Cloudflare, or W3 Total Cache) without issues.

Is Spicy Forms accessible (a11y)?

Yes. All inputs, labels, and notifications are dynamically wired with appropriate aria-labelledby, aria-describedby, and role="alert" attributes using WordPress core’s HTML Tag Processor. When validation errors occur, keyboard focus is automatically directed to the first invalid field.

Screenshots

Changelog

0.0.3

  • First release.

0.0.2

  • Enhancement: Optimized server-side email routing and form submission handling.
  • Improvement: Refined input sanitization and redirect URL validation.
  • Documentation: Expanded troubleshooting FAQs for email deliverability, spam protection, and routing configuration.

0.0.1

  • Initial release for the WordPress Block Editor.