Skip to content

Commit c05d062

Browse files
committed
New form submission
1 parent aa6372a commit c05d062

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/webflow_v2/sources/new-form-submission/new-form-submission.mjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
type: "source",
66
key: "webflow_v2-new-form-submission",
77
name: "New Form Submission",
8-
description: "Emit new event when a new form is submitted. [See the docs here](https://developers.webflow.com/#trigger-types)",
8+
description: "Emit new event when a form is submitted. [See the docs here](https://developers.webflow.com/#trigger-types)",
99
version: "0.0.{{ts}}",
1010
...common,
1111
methods: {
@@ -14,10 +14,11 @@ export default {
1414
return "form_submission";
1515
},
1616
generateMeta(data) {
17+
const { name, id, submittedAt } = data;
1718
return {
18-
id: data._id,
19-
summary: `New form ${data._id} submission`,
20-
ts: Date.parse(data.date),
19+
id,
20+
summary: `Form submitted: ${name ?? id}`,
21+
ts: Date.parse(submittedAt),
2122
};
2223
},
2324
},

0 commit comments

Comments
 (0)