Send form completed signals (web)

The form completed signal captures when a visitor successfully submits a form on your website. Use it to follow up on sign-ups and inquiries, build segments of contacts who completed a specific form, and start journeys the moment a form comes in.

Typical use cases across business domains:

  • Retail: Newsletter sign-up, back-in-stock request, store appointment booking
  • Travel: Quote request, brochure download, group booking inquiry
  • Banking/Insurance: Quote form, callback request, account application step

Availability: Pro, Premium and Ultimate


📘

Other ways to send this signal

API

What it captures and how to use it: Form completed signal guide

All signals and methods: Signals overview

📘

Form completed and Submitted a form

Form completed (formCompleted) is the form signal for every provider. The older submittedForm signal, shown as "Submitted a form" in Connect, covers Acoustic forms only. Use formCompleted for new implementations.

Implementation considerations

Fire after the submission succeeds

Send the signal only after the form submission is confirmed. Use your server's success response or the form library's success callback. Don't send it on the submit click: a submission that fails validation or errors on the server isn't a completed form.

Don't send it twice

If a form already records this signal for you, for example an Acoustic form, don't also log it from the page. Use this page for forms Connect doesn't capture on its own, such as forms built into your site or a third-party form embedded on it.

Identify the form consistently

Connect identifies a form by formProvider and formId together. Use the same formId every time the same form is submitted, and set formProvider to sdk for forms you send from the page.

Contact mapping

Any signal can be mapped to a contact. A form is often the moment a visitor first tells you who they are, so pass their email address or other identifier in the audience object. You can provide several identification records in the same signal, for example a contact key and an email address. For details on how Connect processes identification records, see How behavior signals are processed in Connect.


Configuration

Method

TLT.logSignal(signalObject)

Sends the signal to the Acoustic Connect endpoint as a JSON object. The Connect library must be initialized before calling this method.

❗️

Not the same as TLT.logFormCompletion()

TLT.logFormCompletion() records form behavior for session analytics. It doesn't create a form completed signal. To send the signal, use TLT.logSignal() as shown on this page.

Signal structure

Top-level fields

  • audience: Object - Key-value pairs mapping the signal to a contact and optionally updating contact attributes. Keys must match attribute names exactly as they appear in Connect, including capitalization and spacing.
  • category : String - Signal category. Example:Behavior.
  • consent: Object - Consent preferences to update for the contact. At least one of the following channel fields is required: email, sms, or whatsapp.
  • description: String - Description of the signal.
  • effect: String - Describes the effect of the signal on engagement. Valid values: negative, positive. Use positive for form submissions.
  • name: String - Name to differentiate this signal from others (for example, "Contact us form"). Max length: 256 chars.
  • signalType (required): String - Valid value: formCompleted.

Signal content fields

  • formId (required): String - ID of the form. Use the same value every time this form is submitted.
  • formProvider (required): String - The system that hosted the form. Use sdk for forms you send from your page.
  • formName: String - Readable name of the form, such as "Contact us". Connect shows it in the contact's activity feed.
  • formUrl: String - Full URL of the page where the form was submitted.
  • submissionId: String - ID of this submission, if your form system assigns one. Use it to match the signal to your own records. Connect doesn't remove duplicates: two signals with the same submission ID are both recorded.

Basic example

const signal = {
  signalType: "formCompleted",
  name: "Contact us form",
  effect: "positive",
  formId: "contact-us-form",
  formName: "Contact us",
  formProvider: "sdk",
  formUrl: window.location.href,
  audience: {
    "Email": "[email protected]"
  }
};

TLT.logSignal(signal);

Complete example

// Initialize the Connect library
if (window.TLT) {
  TLT.initPremium({
    appKey: "APP_KEY",
    postUrl: "COLLECTOR_URL",
    callback: function () {
      const form = document.querySelector("#contact-us");
      if (!form) return;

      form.addEventListener("submit", async function (event) {
        event.preventDefault();

        const data = new FormData(form);
        const response = await fetch(form.action, {
          method: "POST",
          body: data
        });

        // Send the signal only when the submission succeeded
        if (!response.ok) return;

        const result = await response.json().catch(() => ({}));

        const signal = {
          signalType: "formCompleted",
          name: "Contact us form",
          effect: "positive",
          formId: form.dataset.formId || "contact-us-form",
          formName: "Contact us",
          formProvider: "sdk",
          formUrl: window.location.href
        };

        // Include the submission ID if your server returns one
        if (result.submissionId) {
          signal.submissionId = result.submissionId;
        }

        // Map the signal to a contact
        const email = data.get("email");
        if (email) {
          signal.audience = { "Email": email };
        }

        // Optional: log for debugging
        console.log("formCompleted signal:", JSON.stringify(signal, null, 2));

        TLT.logSignal(signal);
      });
    }
  });
}

Best practices

  1. Fire on success, not on submit. Wait for the server or form library to confirm the submission.
  2. Keep form IDs stable. If you rename or redesign a form, keep its formId so segments and journeys built on it keep working.
  3. Always send a form name. The form name is what marketers see in the activity feed and when they pick a form in segments.
  4. Map contact data in audience, not in the signal. Form answers such as email or phone number belong in the audience object. Opt-in choices belong in the consent object.
  5. Send one signal per submission. Guard against double clicks and SPA re-renders so a single submission doesn't log twice.

Troubleshooting

Signal not arriving?

  • Confirm the Connect library is initialized before logSignal is called. Signals sent before initialization completes fail silently.
  • Check that formId and formProvider are both present. They're required. A signal without one still arrives, but Connect marks it Invalid. Go to Behavior studio > Signal management > Form completed and open the Invalid column to see the error, such as "Field formProvider invalid."
  • If the signal is valid but the contact doesn't have it, the Contact column in the Valid list shows "No contact association." Check that the audience object holds a valid identifier, such as a correctly formatted email address.
  • Use console.log() to check the signal object before sending.

Signal firing multiple times?

  • Check that the submit handler isn't attached more than once, for example after an SPA route change.
  • Disable the submit button while the request is in flight.

Contact not created or updated?

  • Verify the audience field is a flat key-value object. If the format doesn't match, the contact won't be created or updated.
  • Confirm attribute key names match exactly how they appear in Connect, including capitalization and spacing.

Did this page help you?