[WordPress] 外掛分享: LW Simple Forms

首頁 › 外掛目錄 › LW Simple Forms
WordPress 外掛 LW Simple Forms 的封面圖片
20+
安裝啟用
—
尚無評分
12 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.4.0 上架:2025-04-16

內容簡介

LW Simple Forms 是一款多功能的 WordPress 表單外掛,允許用戶創建可自訂的表單,支持完整的表單提交流程,並提供簡單的一步提交選項,適合各類網站需求。

【主要功能】
• 完整的表單工作流程:輸入、確認、完成三個步驟
• 彈性設計:可自訂每個畫面的 HTML
• 表單驗證:伺服器端與客戶端的驗證功能
• 電子郵件通知:發送確認郵件給管理員與用戶
• 安全功能:CSRF 保護與數據驗證
• 多種欄位類型:支持文本框、選擇框等

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「LW Simple Forms」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

LW Simple Forms is a versatile WordPress form plugin that allows you to create customizable forms. It supports the Japanese-style workflow of a complete form submission process:

Input screen – Users enter their information
Confirmation screen – Users review their input before submitting
Completion screen – Thank you message after successful submission

The plugin also supports a simpler one-step submission process when confirmation is not needed.
A sample form with all supported field types is automatically created on first activation, so you can get started right away.
Important: Page Cache and CDN Compatibility
Form pages must not be served from a page cache. A cached input page keeps a security token that expires after 12 to 24 hours, so submissions start failing. A cached completion page can show one visitor’s submitted details to other visitors.
Since version 1.3.0, every page whose content contains a form shortcode is automatically marked as non-cacheable: the plugin sends no-cache HTTP headers and defines the DONOTCACHEPAGE constant, which caching plugins such as WP Super Cache, W3 Total Cache, WP Rocket, and LiteSpeed Cache respect.
Some caches ignore these signals. Examples are a CDN rule that overrides the origin’s cache headers (such as a Cloudflare Edge TTL setting that ignores the Cache-Control header), nginx FastCGI Cache or Varnish when configured to ignore them, and a hosting company’s own page cache. If you use one of these, please exclude the form page URLs (input, confirmation, completion, error) from caching.
If you place a form outside the page content (in a widget, a synced pattern, or a theme template), caching plugins still skip the page, but the HTTP headers may already have been sent. In that case, exclude those URLs from CDN and server-level caches manually.
After updating to 1.3.0, please purge your page cache and CDN cache once so that previously cached copies of your form pages are removed.
CSS Styling
This plugin does not include any frontend CSS for form display. You are expected to style the forms using your own theme’s stylesheet. HTML/CSS samples are available for reference on the plugin’s website.
Development Concept

HTML-First Approach: This plugin is designed to faithfully reproduce your designed HTML forms, confirmation screens, and error screens without forcing you to adapt to plugin limitations. The forms conform to your design, not the other way around.

Built for Web Professionals: LW Simple Forms does not provide CSS or HTML templates for the frontend. It’s specifically created for web designers and developers who already have designed their form screens and need a way to implement the functionality. (HTML/CSS samples are available for reference.)

Minimalist Philosophy: This plugin intentionally maintains a minimalist approach, focusing on core functionality rather than excessive features. We prioritize site speed and minimal data usage to keep your websites running efficiently.

Key Features

Complete Form Workflow: Create forms with input screen, error screen, confirmation screen, and completion screen
Flexible Design: Customize each screen with your own HTML
Form Validation: Server-side and client-side validation for each input field (required fields, email format, phone number validation)
Email Notifications: Send confirmation emails to both administrators and users
Security Features: CSRF protection, data sanitization, input validation, and secure data handling
Multiple Field Types: Support for text fields, text areas, checkboxes, radio buttons, select menus, and multi-select menus
Shortcode Support: Easy integration into WordPress pages via shortcodes
Custom HTML: Design your forms with complete HTML freedom
Multi-Form Support: Create and manage multiple forms on a single site
Database Storage: Form data is temporarily stored in the database rather than in sessions or cookies, allowing for unlimited submission data
JavaScript/No-JavaScript Support: Forms work properly even in environments where JavaScript is disabled (e.g., screen readers)
Field Validation: Extensive validation system with customizable error messages
Spam Protection Services: Optional Google reCAPTCHA v3 or Cloudflare Turnstile (since 1.4.0), besides the honeypot and the rate limit
Duplicate Submission Prevention: PRG (Post-Redirect-Get) pattern prevents duplicate form submissions on page reload
Security Measures: Protection against common vulnerabilities including CSRF attacks and header injection

Usage Guide

Design and create the HTML for input screen, confirmation screen, and completion screen
Register each screen as a WordPress page
Create a new form from “Forms” in the WordPress admin panel
Configure each section. You can configure the following:

HTML for each screen (input, confirmation, completion)
URL for each screen
Administrator email settings
User email settings
Validation settings (required fields, email format, phone number validation)

Use the “Parse HTML” button to automatically extract form fields from your input screen HTML
Add the appropriate shortcodes to your pages
Test the form operation before going live

Note: This plugin is designed to give you maximum freedom in writing form HTML, so you need to write the HTML for your form pages yourself. The plugin does not provide CSS or images for form display. HTML samples are available for reference.
Supported Input Fields