Types of submit events payload

Digital offers various types of custom events payload. It is possible to define various combinations of these payload types for your property.

Note: These definitions are per property and cannot currently be made at the survey level.
The following are some examples:
  • Only report event submission and UUID

  • Broadcast selection questions only

  • Broadcast selection and verbatim only

Note: These features require feature flag enablement. For more information, contact your Medallia expert.

Feedback ContextData

The following table lists keys and values that are broadcast with every custom event.

contextData variable nameDescription
Form_IDDigital survey identifier.
Form_TypeType of the survey triggering.
Feedback_UUIDUnique identifier of the specific feedback that was sent to Digital. The feedback UUID is generated only when the survey is actually opened. Events such as button_clicked or invite_accepted have no UUID.
Form_Language Language of the form that has been displayed to the user.
ContentList of NPS fields and their values.

Respondee selection questions

In this configuration, the data reported by the custom event is:

  • Feedback UUID

  • Form Type

  • Form ID

  • Form Language

  • An array that contains the responses to each survey component. Each response contains the following fields and additional fields depending on the type of survey component:

    • ID

    • Internal Name

    • Survey component type (see values below)

    • Survey component label as displayed to the respondee

    • Response as defined below

The following table lists the mapping between the survey components and event payload.

Survey componentHow it appears in the event payload
1-5 Ratinggrading
1-7 Ratinggrading1to7
1-10 Ratinggrading1to10
0-10 RatingGrading0to10
Npsnps
CheckboxCheckbox
RadiobuttonRadiobutton
DropdownDropdown

For each survey component, the event contains the response.

  • For “Rating” or “NPS” components, the field “value” contains the respondee's selection.

  • For “Checkbox”, “Radiobutton” or “Dropdown” components, the following is reported:

    • Value — Internal ID of the selected value

    • Answer label
      Note: For questions of type "Checkbox", the response is in an array format, as there could be more than one response

The following is an example of a sample payload:

Example payload.

Verbatim questions

In this configuration, the data reported by the custom event is:

  • Feedback UUID

  • Form Type

  • Form ID

  • Form Language

  • An array that contains the responses to each survey component. Each response contains the following fields:

    • ID

    • Internal Name

    • Survey component type (see values in the table below)

    • Survey component label as displayed to the respondee

    • Response as defined below

The following table lists the mapping between the survey components and event payload.

Survey componentHow it appears in the event payload
Datedate, format
Note: Format contains the date format selected in the form builder.
E-mailemail
Date inputtextinput
Text areatextarea

The following is an example of a sample payload.

Payload example.

No survey questions reported (Legacy)

In this configuration, the data reported by the custom event is:

  • Feedback UUID

  • Form Type

  • Form ID

The following is an example of a sample payload:

Example payload.

Ratings questions only (Legacy)

In this configuration, the data reported by the custom event is the form configuration data reported in No survey questions reported as well as a list of rating and NPS questions that contain the following for each question:

  • Internal ID — Internal identification of the question.

  • Question type — Always grading for this configuration.

  • Unique name — Value of the internal field name as defined in the form builder.

  • Value — Selection made by the user.

  • Questions components are one of the following:

    • 1-5 — grading

    • 1-7 — grading1to7

    • 1-10 — grading1to10

    • 0-10 — grading0to10

    • nps

The following is an example of a sample payload:

Example payload.