# Event: contact-submit
# DNA-27 / RFC-0027

id: contact-submit
label: Contact Form Submit
description: >
  A visitor submitted the contact form. Bottom-of-funnel event for the contact
  funnel. Emit only on successful client-side submission, not on server-side error.
  Must not include PII in any payload field.

category: engagement
autoEmit: false

payload:
  locale:
    type: string
    description: Active locale
    required: true
  formId:
    type: string
    description: Stable id of the contact form
    required: true
  subject:
    type: string
    description: >
      Categorised subject (e.g. 'general', 'partnership', 'press').
      Must be a machine-readable category, not free-text entered by the visitor.
    required: false
