
內容簡介
總結:
LW Simple Forms 是一個多功能的 WordPress 表單外掛程式,允許您創建可自訂的表單,支援完整的日式工作流程,包括輸入畫面、確認畫面和完成畫面。此外,當不需要確認時,該外掛程式也支援更簡單的一步提交流程。
問題與答案:
1. LW Simple Forms 可以幫助創建什麼樣的表單?
- LW Simple Forms 是一個多功能的 WordPress 表單外掛程式,可以創建可自訂的表單。
2. 這個外掛程式如何支援完整的表單提交流程?
- 這外掛程式支援完整的表單提交流程,包括輸入畫面、確認畫面和完成畫面。
3. 這個外掛程式的開發概念是什麼?
- 這外掛程式採用 HTML 作為優先考量,保留極簡主義的哲學,注重核心功能而非過多的特色。此外,它為網頁設計師和開發人員量身打造,並提供完整的自訂設計。
4. 使用 LW Simple Forms,如何創建並設置表單?
- 設計和建立輸入畫面、確認畫面和完成畫面的 HTML。
- 將每個畫面註冊為 WordPress 頁面。
- 從 WordPress 管理面板中的「表單」建立新的表單。
- 進行相應的設置,包括畫面的 HTML、URL、管理員郵件設定、用戶郵件設定和驗證設定。
5. 這外掛程式支援哪些輸入字段?
- 這外掛程式支持多種輸入字段,包括文本字段、文字區域、核取方塊、單選按鈕、下拉選單等。
外掛標籤
開發者團隊
原文外掛簡介
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.
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
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
Form Screen Placeholders
Input Screen:
* Use [lwsf_value_fieldname] to display previously entered values
* Use [lwsf_error_fieldname] to display validation error messages
* Use [lwsf_send] for the submit button
Confirmation Screen:
* Use [lwsf_confirm_fieldname] to display submitted values
* Use [lwsf_back] for the back button
* Use [lwsf_send] for the submit button
Completion Screen:
* Use [lwsf_field_fieldname] to display submitted values
Email Settings
Available placeholders for email templates:
* [lwsf_field_fieldname] – Display submitted form data
* [lwsf_site_admin_email] – Display site admin email
* [lwsf_site_name] – Display site name
* [lwsf_site_home_url] – Display site URL
Additional Information
For items that allow multiple selections (,
Example:
For checkboxes: Service A Service B
For select multiple:
Works in environments where JavaScript is disabled, such as screen readers
The outputted source code uses entity references for security measures and stable operation
Includes Japanese language files (UTF-8 only)
Avoids using reserved WordPress query variable names for form fields to prevent conflicts
Data Storage and Security
Form submissions are temporarily stored in the WordPress database (prefix_lwsf_form_data table)
Data is automatically cleaned up after 1 hour
All user inputs are sanitized before processing
CSRF protection is implemented on all form submissions
Email headers are validated to prevent header injection
Why This Plugin Was Created
This plugin was created because MW WP Form, which had been used for client work for many years, ended development. There was a need for a form plugin with confirmation screens that operated cleanly. The plugin was created primarily for web development work, and we thought many web development companies might have similar needs.
Future Implementation Plans
The ability to change validation error messages
PHP-based validation hooks that operate before and after form submission
Additional validation types (URL, numeric values, custom regex patterns)
Hooks to trigger at important timings such as just before and just after email sending.
File upload handling
reCAPTCHA
Privacy Policy
This plugin stores form submission data in the WordPress database (prefix_lwsf_form_data table) for the purpose of displaying confirmation and completion screens. Data is automatically deleted after 1 hour.
When enabled, user email addresses may be used to send confirmation emails to form submitters. The plugin does not share any collected data with external services.
