Skip to content

Commit

Permalink
update submitDone event
Browse files Browse the repository at this point in the history
  • Loading branch information
devonpis committed Aug 17, 2022
1 parent 49bc0f4 commit c60d19a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/createForm.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default ({ form, formConfirmation }) => {
form.on("submitDone", () => {
pushDataLayer({
event: "formio-submission",
submissionsUrl: `form.io: ${form.formio.submissionsUrl}`,
"formio-submissionsUrl": `form.io: ${form.formio.submissionsUrl}`,
"formio-name": form._form.title,
"formio-version": form._form.modified,
});
Expand All @@ -49,7 +49,7 @@ export default ({ form, formConfirmation }) => {
: error?.message || error;
pushDataLayer({
event: "ngErrorEvent",
ngErrorLocation: form._form.title,
ngErrorLocation: `form.io - ${form._form.title}`,
ngErrorMsg: msg,
ngErrorStack: "",
});
Expand Down

0 comments on commit c60d19a

Please sign in to comment.