> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Form Response

> Event payload details and trigger documentation for Form Response data from Feathery

<img src="https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/feathery.svg?fit=max&auto=format&n=EU2WCxuXGIUQcziR&q=85&s=8243b4046d357daa335afa5c1086dd82" alt="images/feathery.svg" width="40" height="40" data-path="images/feathery.svg" />

# Events

## Triggering Webhook Types

The following event types are associated with the Form Response event payload from Feathery.

* `Feathery Form Step Submission`

<RequestExample>
  ```json Example theme={null}
  {
    "answers": {
      "email_address": "johndoe@example.com",
      "other_variable": "Example Answer",
      "phone_number": "+15551234122"
    },
    "form_completed": true,
    "form_id": "sMGNGW",
    "form_name": "New Patient Signup Form",
    "received_at": "2024-07-01T11:29:19+00:00",
    "step_id": "Contact Info",
    "user_id": "85b7133b-84db-486e-b721-7a63f2dde525"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Description theme={null}
  {
    "answers": "Received Form field values",
    "form_completed": "Is the sequence of form steps complete, have all steps been answered?",
    "form_id": "Unique form ID",
    "form_name": "Human-readable form name",
    "received_at": "Time the form step submission was received by Morf",
    "step_id": "Form step ID",
    "user_id": "Feathery form responder user ID (v4 UUID)"
  }
  ```
</ResponseExample>

### Payload Field Details

<ResponseField name="Form Response" type="Event Payload">
  <Expandable title="fields" defaultOpen="true">
    <ResponseField name="answers" type="object" required>
      `HI` `ID` `PII` Received Form field values

      ```json CEL theme={null}
      answers
      ```

      ```json Example theme={null}
      {
      "email_address": "johndoe@example.com",
      "other_variable": "Example Answer",
      "phone_number": "+15551234122"
      }
      ```
    </ResponseField>

    <ResponseField name="user_id" type="string" required>
      `ID` Feathery form responder user ID (v4 UUID)

      ```json CEL theme={null}
      user_id
      ```

      ```json Example theme={null}
      "85b7133b-84db-486e-b721-7a63f2dde525"
      ```
    </ResponseField>

    <ResponseField name="form_name" type="string" required>
      Human-readable form name

      ```json CEL theme={null}
      form_name
      ```

      ```json Example theme={null}
      "New Patient Signup Form"
      ```
    </ResponseField>

    <ResponseField name="form_id" type="string" required>
      Unique form ID

      ```json CEL theme={null}
      form_id
      ```

      ```json Example theme={null}
      "sMGNGW"
      ```
    </ResponseField>

    <ResponseField name="step_id" type="string" required>
      Form step ID

      ```json CEL theme={null}
      step_id
      ```

      ```json Example theme={null}
      "Contact Info"
      ```
    </ResponseField>

    <ResponseField name="received_at" type="timing.v1.Timestamp" required>
      Time the form step submission was received by Morf

      ```json CEL theme={null}
      received_at
      ```

      ```json Example theme={null}
      "2024-07-01T11:29:19+00:00"
      ```
    </ResponseField>

    <ResponseField name="form_completed" type="bool" required>
      Is the sequence of form steps complete, have all steps been answered?

      ```json CEL theme={null}
      form_completed
      ```

      ```json Example theme={null}
      true
      ```
    </ResponseField>
  </Expandable>
</ResponseField>
