Language

Forms and leads: after a visitor submits

The submission and the event are in one transaction; fields that can go to an external address are a whitelist that takes effect at save time; leads manage status and owner, and are not a CRM.

A form a visitor fills in on your site lands in two places: the form collects the content, and the lead manages follow-up. They are two layers of capability, not one table plus an email inbox.

Forms

The backend can customize fields: text, email, dropdown, checkboxes and so on, and you get a form embeddable in a page. After a visitor submits, the data is stored on this site and does not pass through any third-party service.

A few things on the submission path are fixed:

The write and the event are in the same transaction. When one submission lands in the database, an event is registered at the same time; "data saved but notification lost" or "notification sent but no row in the database" cannot happen. Notification channels consume this event; they do not read the table directly.

The fields that can go to an external address are a whitelist. Every event has a list of allowed template variables, and writing a variable outside the list when configuring a channel is rejected outright. So "copying the visitor's body text into an external group bot" cannot be configured, rather than being configurable but sent only by convention. This boundary takes effect at save time; it does not rely on anyone remembering.

The public write endpoint does not return internal error text. If a submission fails because of a server-side problem, the visitor sees a fixed message and a stable error code; table names, column names or driver information are not sent out in every crawler-readable response.

Leads

A lead is "who follows this submission and how far it has gone". It supports status, an owner and follow-up records, and the backend can filter by status to find the ones nobody has touched.

It is not a CRM. No sales opportunities, no external sync, no customer accounts. If a CRM is to be integrated in the future, it goes through capability and event integration, not direct edits to the leads table.

Division of labor with the customer-service module

Message boards go through forms and leads; real-time conversations go through intelligent customer service (visitor Q&A, transfer to human, agent handling). The two paths each have their own entries; do not force a customer-service conversation into a form, and do not treat messages as "customer service nobody picked up".

One practical suggestion

Form fields: enough is enough. Each additional required field is one more reason for a visitor to give up filling it in; and on exporter sites, messages often come from an email forward or copying a link on mobile, where the friction cost is higher than on domestic sites. To distinguish contact channels, prefer asking for email only and leave phone optional.