Linux 软件免费装
Banner图

HTML Forms & Contact Form for WordPress: Narrative Forms

开发者 narrativecode
更新时间 2026年8月3日 19:22
PHP版本: 7.2 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

contact form form builder conditional logic custom form html forms

下载

1.0.4 1.2.2 1.0.0 1.0.1 1.0.2 1.0.3 1.2.0 1.2.1

详情介绍:

Narrative Forms is the HTML form plugin for WordPress. Instead of dragging boxes around a builder, you write plain semantic HTML, or paste it straight from an AI like ChatGPT, Claude, or Gemini, and Narrative Forms turns it into a real form with fast AJAX form submissions and stored, exportable data. Any input with a name attribute is saved. That is the whole idea: forms are just HTML, so there is no field type registry, nothing proprietary to lock you in, and no ceiling on what your form can be. If you want a clean, fast, developer friendly HTML form plugin, a simple contact form, or a custom form that a heavy form builder cannot easily produce, this is it. It stays lightweight, loads its assets only on pages that contain a form, and is built to scale to millions of submissions. Everything it does is free, with no premium tier: the AI form builder, conditional logic, webhooks with delivery logs and retries, a REST API, require login, schedule windows, and hosted share links are all included at no cost. Why an HTML form plugin beats a drag and drop builder Most WordPress form plugins lock you into a drag and drop form builder and a fixed list of field types. If the builder does not offer a field, you cannot have it. Narrative Forms is an HTML form plugin with no field registry: a field is simply an HTML element with a name. Need a multi step layout, an unusual input, a custom widget, or markup your designer already wrote? Paste it in and it works. You keep full control of the markup, the classes, and the look, so your contact form or custom form renders exactly the way you built it. Drag and drop made sense years ago. Today you describe what you want or paste what you already have. No builder, no bloat, and no fighting a clunky UI to recreate a form you can already picture. That is why people who outgrow a drag and drop form builder move to a real HTML form plugin. Build forms with AI, built in or pasted from ChatGPT, Claude, or Gemini Because forms are just HTML, any large language model can build one for you, and Narrative Forms gives you two ways to use that. The built in AI form builder writes the form HTML for you right inside WordPress: open a form, click Generate with AI, describe what you want, and keep refining it by chatting. You bring your own API key for an OpenAI compatible provider such as DeepSeek, OpenAI, or OpenRouter, so you stay in control of the model and the cost. You can also paste from anywhere: ask ChatGPT, Claude, or Gemini for a form and drop the HTML in, because there is no proprietary field format to satisfy. Either way, the plugin stays model agnostic, ships with no AI key, and contacts no AI service until you add one; see the Privacy and External services sections for what is sent and when. Everything in the free HTML forms plugin The free HTML forms plugin is a complete forms solution, not a teaser. Here is what every install includes: Every output is escaped and every input is sanitised, following WordPress coding and security standards, so the plugin stays review safe and secure. Send form data anywhere with webhooks and a REST API Narrative Forms is built to move your form submissions wherever they need to go. Add a webhook action with your endpoint URL and every submission is delivered to that webhook, so you can connect a form to Zapier, Make, a CRM, Discord, Slack, Microsoft Teams, or your own service without writing code. A webhook delivery log shows every call and its response, failed webhooks retry automatically with backoff, and webhook templates let you shape a custom JSON payload with one click presets for Discord, Slack, and Teams. When you would rather pull data than push it, the REST API exposes your form submissions under the nrfm/v1 namespace, protected by a capability check or an API key. Add conditional logic to show or hide fields, require login to restrict a form, and schedule windows to open and close it automatically, and your form data never gets stuck in the admin. Contact forms, custom forms, and every form in between Narrative Forms is a general purpose form plugin, so the same HTML first workflow covers almost any form: a simple contact form, a lead capture or support request form, a job application, an RSVP, a survey, a registration form, a file upload form, or a custom form with a layout a drag and drop builder cannot easily produce. Because a field is just an HTML element with a name attribute, you paste the HTML, give the fields names, and the form is live with AJAX form submissions, stored data, conditional logic, and CSV export. There is no template to fight and no field type you cannot add, which is the difference between an HTML form plugin and a drag and drop form builder, and the same lightweight form plugin scales from a handful of submissions a month to millions over time. Developer friendly HTML form plugin Narrative Forms is built for people who like control. Prefill fields with template variables such as {{ user.email }}, {{ get.utm_source | default:'direct' }}, or {{ site.name }}, using providers like user, URL parameters, post, site, and date, each with filters such as default, upper, lower, date, and truncate. On the front end, public JavaScript events (nrfm-submit, nrfm-submitted, nrfm-success, nrfm-error) let you push conversions to Google Tag Manager or your dataLayer, show a toast, or run any custom logic with a tiny nrfm.on() helper. Filters and actions sit at every decision point, including the form HTML, validation, and webhook request arguments, and a REST API is available for reading and managing form submissions, so you can extend this HTML form plugin without forking it. Built to scale to millions of form submissions Narrative Forms is engineered for sites that collect a lot of data. Form submissions live in a dedicated, indexed database table rather than bloated post meta, so lookups stay fast as the table grows. Repeated reads are cached, queries are paginated and bounded, CSV export streams in batches, and heavy work can run in the background so the front end stays quick. Whether you collect ten form submissions a month or millions over time, this lightweight form plugin is designed to stay responsive. Scaling to millions describes the architecture, indexed storage, caching, and bounded queries, rather than a benchmarked guarantee. Who this HTML forms plugin is for Common uses include contact forms, lead capture, support requests, job applications, RSVPs, surveys, file uploads, registrations, and multi field custom forms with conditional logic that a drag and drop builder cannot easily produce. Publish form submissions with Frontend Submissions (Views) Most form plugins keep submissions locked in the admin. The Narrative Forms Frontend Submissions add on turns your form submissions into front end content with reusable Views: display any form's submissions as a public directory, a testimonial wall, a photo gallery, a job board, an event timeline, or product reviews, with instant search, pagination, single pages, per field privacy, and approval moderation. Frontend submission display is the one paid add on and it requires the free Narrative Forms plugin. Collect with the form, publish with a View. Learn more at https://narrative-forms.com/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=free

屏幕截图:

  • No field type limits in this HTML form plugin: a table booking form with a seating switcher, a guest stepper, and native date and time pickers.
  • Build a custom form fast: an instant quote form with selectable option cards and range sliders that update a live price.
  • The built in HTML editor with one click field buttons, a live preview, and a file upload form field with size and count limits.
  • The built in AI form builder writing a WordPress form from a plain language prompt, with your own OpenAI compatible API key.
  • Conditional logic rules that show or hide a field based on what the visitor enters.
  • Webhook actions with a delivery log and automatic retries, plus Discord, Slack, and Teams payload templates.
  • Stored form submissions in the admin with one click, batched CSV export.
  • Appearance and protection settings: an optional stylesheet, honeypot, and Cloudflare Turnstile, privacy friendly with no third party tracking.

升级注意事项:

1.2.2 Adds editing of submissions from the admin and via a secure link, and fixes token-named fields being dropped as spam. Existing forms keep working. 1.2.1 Fixes direct share links needing a manual permalink refresh after a base change, and a direct link field that could stay hidden on the Settings tab until reload. No changes for existing forms. 1.2.0 Adds webhook delivery logs and retries, webhook templates, a REST API, require login, schedule windows, and share links, all free. Existing forms keep working. 1.1.0 Adds a built in AI form builder, conditional logic, save and resume, and submission notifications, all free. Existing forms keep working. 1.0.4 Adds a developer hook (nrfm_field_buttons_after) so add-ons can extend the form editor toolbar. No changes for existing forms. 1.0.3 Fixes a Security check failed notice on the form edit screen, adds a confirmation when deleting submissions, and stops the form preview from being clipped. 1.0.2 Adds a ready to use Contact Form on install, enables the basic stylesheet by default, simplifies the field setup panel, and shows form errors inline. 1.0.1 Adds optional usage analytics (nothing is collected unless you allow it) and updates the readme. 1.0.0 First public release of Narrative Forms, the HTML form plugin built on plain HTML.

常见问题:

What is the best HTML form plugin for WordPress?

If you want full control of your markup, Narrative Forms is built to be the simplest HTML form plugin for WordPress. You write or paste plain HTML, or generate it with an AI, and any input with a name attribute becomes a saved field. There is no drag and drop builder and no field type registry to limit you, so the form is exactly what you build, from a basic contact form to a complex custom form with conditional logic and file uploads.

How do I create an HTML contact form without a builder?

Go to Narrative Forms, then Add New, and write or paste your contact form HTML, or use the one click field buttons to scaffold it. Give every input, select, and textarea a name attribute so its value is saved. Copy the generated shortcode into any post, page, or block, and your HTML contact form is live with fast AJAX form submissions and optional stored data.

Does Narrative Forms have a built in AI form builder?

Yes. The built in AI form builder writes the form HTML for you inside WordPress: click Generate with AI, describe the form you want, and keep refining it by chatting. You bring your own API key for an OpenAI compatible provider such as DeepSeek, OpenAI, or OpenRouter, so you control the model and the cost. You can also paste a form from ChatGPT, Claude, or Gemini, because Narrative Forms saves any named HTML field.

How do I show or hide fields with conditional logic?

Open the form's Conditional Logic tab and add a rule such as show or hide a field when another field equals, contains, is greater than, or is empty. Conditional logic runs in the browser for an instant response and is enforced again on the server, and any required field hidden by a rule is dropped from validation so it never blocks a submission.

How do I send form data to a webhook such as Discord, Slack, or Zapier?

Open the form's Actions tab and add a webhook action with your endpoint URL. On each submission the field data is sent to that webhook URL, so you can connect Narrative Forms to Zapier, Make, a CRM, or your own service without writing code. Webhook templates include one click Discord, Slack, and Teams presets, every call is recorded in a delivery log, and failed webhooks retry automatically. You can add more than one webhook per form.

Where are form submissions stored, and can I export them to CSV?

You can optionally store every submission in a dedicated, indexed database table that you view in the admin. Run a CSV export of your form submissions at any time; the export streams in batches, so it works even with very large numbers of submissions. You can also forward form submissions by email or webhook, or read them through the REST API, instead of or in addition to storing them.

Is there a REST API for form submissions?

Yes. Narrative Forms exposes a REST API under the nrfm/v1 namespace so another application can read and manage your form submissions. Requests are authenticated by a capability check or by an API key you generate in Settings, so access stays under your control. It is handy for dashboards, integrations, and your own tooling.

Can I display form submissions on the front end?

Yes, with the Narrative Forms Frontend Submissions add on, which publishes your form submissions as public Views such as directories, testimonials, galleries, and listings, with instant search, single pages, per field privacy, and approval moderation. Frontend submission display is the one paid add on; the free HTML form plugin focuses on collecting, storing, and routing your form submissions.

更新日志:

1.2.2 1.2.1 1.2.0 1.1.0 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0