Linux 软件免费装
Banner图

LW Simple Forms

开发者 furao77
更新时间 2026年10月2日 14:00
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL2
版权网址: 版权信息

标签

email form contact form contact custom form

下载

1.1.1 1.0.0 1.2.0 1.3.1 1.3.0 1.1.0

详情介绍:

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:
  1. Input screen - Users enter their information
  2. Confirmation screen - Users review their input before submitting
  3. 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.

安装:

  1. Upload the lw-simple-forms folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Create a new form from the 'Forms' menu item
  4. Configure the form settings including HTML templates and email notifications
  5. Create pages for your form screens (input, confirmation, completion)
  6. Add the appropriate shortcodes to your pages:
  7. [lwsf_input id="123"] - For the input screen
  8. [lwsf_confirm id="123"] - For the confirmation screen (optional - leave empty to skip confirmation)
  9. [lwsf_complete id="123"] - For the completion screen (optional - displayed on the input screen URL if omitted)
  10. [lwsf_error id="123"] - For the error screen (optional - errors are displayed on the input screen if omitted)

屏幕截图:

  • Example of an Edit Form screen in Japanese.
  • Example of embedding the form input screen shortcode in a static page.
  • Example of the form input screen on the front end (CSS not applied).
  • Example of embedding the input error screen shortcode in a static page.
  • Example of the input error screen on the front end (CSS not applied).
  • Example of embedding the confirmation screen shortcode in a static page.
  • Example of the form input screen on the front end (with basic CSS applied).
  • Example of embedding the submission completion screen shortcode in a static page.
  • Example of the submission completion screen on the front end (CSS not applied).

升级注意事项:

1.3.0 Form pages are now automatically excluded from page caching. Recommended for all sites that use a caching plugin or CDN. After updating, purge your page cache and CDN cache once. 1.2.0 Added IP rate limiting, honeypot bot detection, and confirmation screen enforcement. Strongly recommended update for spam protection. 1.1.1 Sample form on first install, cache compatibility warning, and documentation improvements. Recommended for new installations. 1.1.0 Added reCAPTCHA v3 spam protection, PRG pattern for duplicate submission prevention, and several bug fixes. Recommended update for all users. 1.0.0 Initial release

常见问题:

How do I create a form?

Navigate to LW Simple Forms → Add New Form in your WordPress admin, configure the form settings, and save. You'll then need to add the appropriate shortcodes to your pages.

How do I set required fields?

After creating your form HTML, use the "Parse HTML" button to detect form fields automatically. Then you can mark fields as required in the "Validation Settings" section.

Can I skip the confirmation screen?

Yes. Simply leave the "Confirmation Screen URL" field empty, and the form will skip straight to completion after submission.

How long is submission data kept in the system?

Data is temporarily stored in the database for one hour. After this period, the data is automatically deleted.

Will the form work if a user has JavaScript disabled?

Yes. The plugin is designed to work both with and without JavaScript. All validations and form processing have server-side fallbacks.

Do I need to exclude my form pages from caching?

Since version 1.3.0, pages whose content contains a form shortcode are automatically excluded from caching by most caching plugins and by CDNs that follow the page's cache headers. You only need to exclude the form page URLs manually if your cache ignores these headers (for example a CDN rule that overrides the origin's cache headers, a server-level cache configured to ignore them, or a hosting company's own page cache), or if the form is placed outside the page content. Note that a form placed in a sitewide widget or footer turns off page caching on every page where it appears. See "Page Cache and CDN Compatibility" in the Description.

How do I show different error messages for different validation types?

Currently, the plugin uses standard error messages. Future versions may support customizable validation messages.

Can I use special characters in my forms?

Yes. The plugin properly handles special characters and different encodings, but it's recommended to use UTF-8 encoding.

How do I send confirmation emails to users?

Enter a field name (usually an email field) in the "Recipient Email Address Field" setting under "User Auto-send Email Settings". e.g. If the name attribute of the email field is set to "your-email", you should write it as [lwsf_field_your-email].

更新日志:

1.3.0 Improvements: Bug Fixes: Documentation: 1.2.0 New Features: Improvements: Security: 1.1.1 New Features: Documentation: 1.1.0 New Features: Improvements: Bug Fixes: 1.0.0