diff --git a/lib/dashboard.js b/lib/dashboard.js index a5f9d748..78398bd4 100644 --- a/lib/dashboard.js +++ b/lib/dashboard.js @@ -341,6 +341,7 @@ router.get('records#new', '/sections/:id/records/new', findSection, async (ctx) action: section.options.action || `https://formspree.io/${recipient}`, subject: section.options.subject, next: section.options.next, + submit: section.options.submit, Form, }); } else { diff --git a/lib/models/section.js b/lib/models/section.js index 058dd0f4..e5566dcb 100644 --- a/lib/models/section.js +++ b/lib/models/section.js @@ -257,6 +257,7 @@ module.exports = (sequelize, DataTypes) => { action: options.action || `https://formspree.io/${recipient}`, subject: options.subject, next: options.next, + submit: options.submit, fields, Form, }); diff --git a/views/records/_form_email.ejs b/views/records/_form_email.ejs index a0c678fc..689ddefc 100644 --- a/views/records/_form_email.ejs +++ b/views/records/_form_email.ejs @@ -7,6 +7,6 @@ - +