Faith Forge LabsBrazil
EnglishPortuguês

Let a first enquiry remain a first enquiry

A visitor who wants to ask whether a business supplies a particular product may not be ready to create a billing record. If the contact form insists on a business identifier before accepting that question, the visitor can be blocked by a requirement that belongs to another stage of the relationship.

The answer is not to remove every identifier field from every process. It is to establish what this particular enquiry needs, then make the browser, server and receiving staff record follow that decision. A cosmetic change to the form can leave the underlying obstacle untouched.

Inspect the enquiry the business intends to receive

In this fictional example, a Brazilian supplier accepts preliminary questions about product suitability and availability. Its approved enquiry process needs a contact name, reply address, subject and message. The responsible business owner confirms that company registration happens later if the conversation becomes a purchasing relationship.

Test enquiry Q-24 asks whether item P-18 is offered with a particular finish. It includes the approved contact fields and no CNPJ. Nothing in the enquiry asks the supplier to issue an invoice, open a credit account or approve an order. Those distinctions are recorded before anyone changes the form.

The website nevertheless requires CNPJ. Its developer reused a billing-registration component for the contact page. The component also supplied the server validation schema, so the same requirement exists at two boundaries.

Follow the rejection past the visible field

The first attempted repair hides the CNPJ field and removes its browser-required setting. Q-24 now passes the browser's checks, but the server still rejects it because the shared billing schema expects an identifier. No enquiry is stored. The visitor sees a generic error after completing all the fields that remain visible.

The inspection separates three observations:

  • The browser no longer requests CNPJ.
  • The enquiry endpoint still validates against the billing-registration rules.
  • The staff enquiry list contains no Q-24 record after the rejected request.

This evidence rules out an email notification delay as the explanation for the missing question. There is no accepted enquiry for the notification process to announce. It also shows why asking the visitor to refresh and try again cannot resolve the missing server field.

OWASP's input-validation guidance distinguishes validation for an operation from merely accepting a format, and requires server-side checking even when browser checks exist. Here the server needs the correct enquiry rules, not the absence of rules.

Give the enquiry its own information contract

The chosen correction defines the enquiry fields and their limits separately from the billing record. The server accepts only the intended enquiry input, validates the required reply information and message, and creates an enquiry record. It does not silently create an incomplete company account.

The form explains the task in Portuguese: ask the question and provide a way to reply. It avoids inviting identity documents, payment details or other information unnecessary for this first exchange. The business's actual privacy wording and retention decisions need their own responsible review; removing a field is not a declaration that every privacy obligation has been settled.

The later billing process retains its approved requirements and validation. Sharing a text-field component remains possible. Sharing the wrong definition of a complete record does not.

Record what the corrected test establishes

In the isolated acceptance exercise, Q-24 without CNPJ is accepted as enquiry E-24. The staff view shows its contact name, reply address, subject and complete question. The response identifies acceptance of the enquiry; it does not claim that staff have answered it or approved a transaction.

A second fixture omits the required reply address. It is rejected with a field-specific explanation, while the useful message remains available for correction. A direct request that bypasses the browser receives the same server-side rejection. The change has not converted the endpoint into an unvalidated free-form receiver.

The comparison billing fixture B-24 still requires the information that its approved registration process specifies. No enquiry correction weakens that separate route. E-24 remains an enquiry and is not added to the customer-account table by a background shortcut.

Preserve the point at which more information becomes necessary

If the conversation later requires billing registration, staff should explain the next task and provide the appropriate approved route. They should not ask the visitor to put an identifier into an unrelated public comment merely because the enquiry form no longer collects it.

A connection between enquiry and later account can preserve the earlier question without treating the two records as identical. The business should define who may make that association, which details carry forward and what still needs confirmation. A shared email address alone may not establish the correct organization or purchasing authority.

Make the result useful for the next enquiry

Keep a small comparison set with the form: complete preliminary question, missing reply information, unsupported input and the separate billing-registration control. Review those cases when either component changes. This catches a future attempt to reuse the billing schema again.

The business-site service can scope the public enquiry journey. If a later registration genuinely needs CNPJ, the identifier-format guide examines how to preserve it correctly. Deciding when to ask and preserving what was entered are separate responsibilities, and both deserve an explicit answer.