Custom events integration using custom HTML
To enable events in custom HTML forms, the capability must be enabled in the Medallia backend. See your Medallia expert for more information.
Automatic custom events triggering
# | Method triggered | Customer custom events name | Payload |
---|---|---|---|
1 | Automatic | MDigital_ShowForm_Called | Form_ID |
2 | Automatic | MDigital_Invite_Displayed | Form_ID |
3 | Automatic | MDigital_Invite_Accepted | Form_ID |
4 | Automatic | MDigital_Invite_Declined | Form_ID |
5 | Automatic | MDigital_Invite_Skipped | Form_ID |
6 | KAMPYLE_SDK.kampyleSubmit(data, needToCloseFlag) | MDigital_Submit_Feedback | Form_Type (AlwaysOn,Intercept,CodeForm) Form_ID Feedback UUID |
7 | If the form has been submitted before Close was clicked: KAMPYLE_SDK.kampyleCloseWindow() Else: Submit with needToCloseFlag = true. Example: KAMPYLE_SDK.kampyleSubmit(data, true) Note: Embedded surveys do not have a Close button. MDigital_Form_Close_Submitted is not fired for them | MDigital_Form_Close_Submitted | Form_Type (AlwaysOn,Intercept,CodeForm) Form_ID Feedback UUID |
8 | Automatically, when the KAMPYLE_SDK.kampyleCloseWindow() method has been called without Submit being clicked beforehand. | MDigital_Form_Close_No_Submit | Form_Type (AlwaysOn,Intercept, CodeForm) Form_ID |
9 | Automatically | MDigital_Feedback_Button_Clicked | Form_Type (AlwaysOn,Intercept,CodeForm) Form_ID Feedback UUID (if applicable) |
10 | Automatically if the Screen Capture feature is implemented within the HTML. | MDigital_CaptureButton_Clicked | Form_Type (AlwaysOn,Intercept,CodeForm) Form_ID Feedback UUID (if applicable) |
11 | Automatically if the Screen Capture feature is implemented within the HTML. | MDigital_CaptureButton_Taken | Form_Type (AlwaysOn,Intercept,CodeForm) Form_ID Feedback UUID (if applicable) |
12 | Automatically if the Screen Capture feature is implemented within the HTML. | MDigital_CaptureButton_Cancel | Form_Type (AlwaysOn,Intercept,CodeForm) Form_ID Feedback UUID (if applicable) |
Manual custom events triggering
The following custom events are related to buttons created manually in the custom HTML and need to be binded manually.
# | Customer custom events name | Payload |
---|---|---|
1 | MDigital_Form_Next_Page | Form_Type (AlwaysOn,Intercept, CodeForm) Form_ID |
2 | MDigital_Form_Back_Page | Form_Type (AlwaysOn,Intercept, CodeForm) Form_ID |
3 | MDigital_ThankYou_Displayed | Form_Type (AlwaysOn,Intercept, CodeForm) Form_ID |
4 | MDigital_ThankYou_Close | Form_Type (AlwaysOn,Intercept, CodeForm) Form_ID Feedback UUID |