confirmation email integration fixes (#434)

This commit is contained in:
Chirag Chhatrala
2024-06-03 13:44:59 +05:30
committed by GitHub
parent 4b9db042ed
commit 31455e7c24
3 changed files with 15 additions and 1 deletions

View File

@@ -81,13 +81,14 @@ const emailSubmissionConfirmationHelp = computed(() => {
onBeforeMount(() => {
for (const [keyname, defaultValue] of Object.entries({
respondent_email: emailSubmissionConfirmationField.value !== null,
notification_sender: "OpnForm",
notification_subject: "We saved your answers",
notification_body:
"Hello there 👋 <br>This is a confirmation that your submission was successfully saved.",
notifications_include_submission: true,
})) {
if (props.integrationData.settings[keyname] === undefined) {
if (keyname === 'respondent_email' || props.integrationData.settings[keyname] === undefined) {
props.integrationData.settings[keyname] = defaultValue
}
}