{"title":"Form Error","description":"Measures any errors within a forms lifecycle (validation, or otherwise).","type":"object","allOf":[{"properties":{"event":{"title":"Event Name","const":"form_error"}},"required":["event"]},{"title":"Error Properties","description":"These properties apply to all `*_error` events.","$schema":"http:\/\/json-schema.org\/draft-07\/schema#","type":"object","definitions":{"error_code":{"type":["integer","string"],"title":"Error Code","description":"The error code associated with the error event. Can be an HTTP status code (e.g. 404) or a custom error code depending on the situation."},"error_line":{"type":["integer","string"],"title":"Error Line","description":"The line number and position in the code where the error occurred if the result of a thrown exception."},"error_message":{"type":"string","title":"Error Message","description":"A human readable error message that describes the error."}},"required":[]},{"title":"Form Properties","description":"These properties apply to all `form_*` events.","type":"object","definitions":{"form_id":{"type":["integer","string"],"title":"Form ID","description":"The unique identifier for the form. This can be as simple and as a HTML `id` attribute. Or it can be a native form ID from a CMS or other system.","example":"0d7fb0da-a3a6-49ad-9c29-d7fbcd56f3b1"},"form_group":{"type":"string","title":"Form Group","description":"The group or category of the form (e.g. Demo Request, or Webinar Registration). This can be used to group forms together for reporting purposes.","example":"Demo Request"},"form_name":{"type":"string","title":"Form Name","description":"A human readable name for the form. These should be dynamically set from the system that provides the form.","example":"Inbound Sales - Request a Demo"},"form_provider":{"type":"string","title":"Form Provider","description":"The name of the system\/platform that provides the form (e.g. HubSpot, Marketo etc...). This can be useful when more than one form provider is in use (e.g. HubSpot and Gravity Forms).","example":"HubSpot"}},"required":["form_id"]}]}