further-external / Apollo-Documentation-UH-Hospital---CJA

An Apollo generated Event Driven Data Layer
0 stars 1 forks source link

Form Error #5

Open rossozburnsdi opened 1 year ago

rossozburnsdi commented 1 year ago

Form Error Message Presented

When a user receives an error not related to a form (such as "page not found")

Javascript Code

window.appEventData = window.appEventData || [];
appEventData.push({
  "event": "Error Message Presented",
    "error": {
        "errorMessage": "<errorMessage>",
        "errorType": "<errorType>",
        "eventName": "form_error"
    }
});

Variable Definitions

Path Type Description Example
error.errorMessage string Used with the "error" and "form_error" events to describe the error that was encountered. 404, page under construction
error.errorType string General type of error presented Payment, System, Form
error.eventName string Static value, see examples "form_error"

Form Error