Skip to content

Instantly share code, notes, and snippets.

@mdalaminbey
Last active August 10, 2023 06:14
Show Gist options
  • Select an option

  • Save mdalaminbey/ae20da7b18668a1b765dd23737709c80 to your computer and use it in GitHub Desktop.

Select an option

Save mdalaminbey/ae20da7b18668a1b765dd23737709c80 to your computer and use it in GitHub Desktop.
let singleForm = {
questions: [],
layout: 'mediaRight',
global: {
bubble: {
background_type: {
type: 'screen', //upload, color
screen: screenId,
upload: {
id: '', //media id
type: 'image', //video
url: ''
},
color: "" //color-code
},
overlay_text: "",
shape: "", //border-radius
border: {
isActive: '1',
color: ""
},
position: "left", //right
offset_x: '',
offset_y: '',
size: "medium" // large, small
},
email_notification: {
template_settings: {
header_color: {
value: "#6551f2"
},
enable_header: {
isActive: 1
},
enable_footer: {
isActive: 1
},
footer_text: {
value: "#6551f2"
},
},
admin_notification: {
notify_on_new_response: {
isActive: 1
},
new_response_subject: {
value: "Thank You"
},
new_response_body: {
value: "Email Body"
},
notify_on_user_message: {
isActive: 1
},
user_message_subject: {
value: "Thank You"
},
user_message_body: {
value: "Email Body"
}
},
user_notification: {
notify_on_new_response: {
isActive: 1
},
new_response_subject: {
value: "Thank You"
},
new_response_body: {
value: "Email Body"
},
new_response_guest_body: {
value: "Email Body"
},
notify_on_admin_message: {
isActive: 1
},
admin_message_subject: {
value: "Thank You"
},
admin_message_body: {
value: "Email Body"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment