File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
components/webflow_v2/sources/new-form-submission Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments