diff --git a/app/controllers/forms.server.controller.js b/app/controllers/forms.server.controller.js index 448dcdca..600ef7b0 100644 --- a/app/controllers/forms.server.controller.js +++ b/app/controllers/forms.server.controller.js @@ -100,9 +100,9 @@ exports.createSubmission = function(req, res) { function(callback) { if (form.respondentNotifications && form.respondentNotifications.enabled && form.respondentNotifications.toField) { - form.selfNotifications.toEmails = formFieldDict[form.selfNotifications.toField]; - - emailNotifications.send(form.selfNotifications, formFieldDict, smtpTransport, constants.varFormat, function(err){ + form.respondentNotifications.toEmails = formFieldDict[form.respondentNotifications.toField]; + debugger; + emailNotifications.send(form.respondentNotifications, formFieldDict, smtpTransport, constants.varFormat, function(err){ if(err){ return callback({ message: 'Failure sending submission respondent-notification email' diff --git a/public/modules/forms/admin/views/adminTabs/configureTabs/respondent-notifications.html b/public/modules/forms/admin/views/adminTabs/configureTabs/respondent-notifications.html index 3d832836..fca6ac75 100644 --- a/public/modules/forms/admin/views/adminTabs/configureTabs/respondent-notifications.html +++ b/public/modules/forms/admin/views/adminTabs/configureTabs/respondent-notifications.html @@ -13,8 +13,9 @@ set-search-to-answer="true" ng-required="true"> + {{$select.selected.title}} - + @@ -22,8 +23,10 @@ -
- {{ 'NO_EMAIL_FIELD_WARNING' | translate }} +
+ + {{ 'NO_EMAIL_FIELD_WARNING' | translate }} +
@@ -67,12 +70,12 @@