1"use strict";(self.webpackChunkform_notify_web=self.webpackChunkform_notify_web||[]).push([[7869],{7402:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>m,frontMatter:()=>s,metadata:()=>r,toc:()=>c});var o=t(4848),i=t(8453);const s={title:"Send attachments based on form answers using Google Email Form Notifications",description:"Learn how to send different attachments using Google Email Form Notifications",date:"2025-02-10",tags:["Google Forms","Conditional Attachments","Form Email Notifications"]},a=void 0,r={permalink:"/blog/2025/02/10/different-attachments",source:"@site/blog/2025-02-10-different-attachments/index.mdx",title:"Send attachments based on form answers using Google Email Form Notifications",description:"Learn how to send different attachments using Google Email Form Notifications",date:"2025-02-10T00:00:00.000Z",formattedDate:"February 10, 2025",tags:[{label:"Google Forms",permalink:"/blog/tags/google-forms"},{label:"Conditional Attachments",permalink:"/blog/tags/conditional-attachments"},{label:"Form Email Notifications",permalink:"/blog/tags/form-email-notifications"}],readingTime:1.67,hasTruncateMarker:!1,authors:[],frontMatter:{title:"Send attachments based on form answers using Google Email Form Notifications",description:"Learn how to send different attachments using Google Email Form Notifications",date:"2025-02-10",tags:["Google Forms","Conditional Attachments","Form Email Notifications"]},unlisted:!1,prevItem:{title:"Advanced Conditional Email Notifications for Google Forms",permalink:"/blog/2025/02/16/advanced-conditional-email-notification"},nextItem:{title:"How to Validate Email in a Google Form Field",permalink:"/blog/2025/02/06/form-email-validation"}},l={authorsImageUrls:[]},c=[{value:"Introduction",id:"introduction",level:2},{value:"Use Cases for Sending Different Attachments Based on Google Form Responses",id:"use-cases-for-sending-different-attachments-based-on-google-form-responses",level:2},{value:"Course Enrollment with Different Study Materials",id:"course-enrollment-with-different-study-materials",level:3},{value:"Customer Support with Product Manuals",id:"customer-support-with-product-manuals",level:3},{value:"Job Application with Position-Specific Documents",id:"job-application-with-position-specific-documents",level:3},{value:"How to send attachments in Email Notifications based on Form Answers",id:"how-to-send-attachments-in-email-notifications-based-on-form-answers",level:2}];function d(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h2,{id:"introduction",children:"Introduction"}),"\n",(0,o.jsx)(n.p,{children:"There are time when you want to send an attachment depending upon the response in the google form .Lets look at some of those use cases."}),"\n",(0,o.jsx)(n.h2,{id:"use-cases-for-sending-different-attachments-based-on-google-form-responses",children:"Use Cases for Sending Different Attachments Based on Google Form Responses"}),"\n",(0,o.jsx)(n.h3,{id:"course-enrollment-with-different-study-materials",children:"Course Enrollment with Different Study Materials"}),"\n",(0,o.jsx)(n.p,{children:"Scenario: A Google Form collects enrollments for different courses.Logic:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:'If a user selects "Python Programming", send Python study material (PDF).'}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:'If a user selects "Web Development", send HTML, CSS, and JavaScript guides (ZIP file).'}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:'If a user selects "Data Science", send Data Science eBook (PDF).'}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(n.h3,{id:"customer-support-with-product-manuals",children:"Customer Support with Product Manuals"}),"\n",(0,o.jsx)(n.p,{children:"Scenario: A form collects customer issues for different products.Logic:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:'If a customer selects "Laptop Model A", send Laptop A User Manual (PDF).'}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:'If a customer selects "Smartphone Model X", send Smartphone X Quick Start Guide (PDF).'}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:'If a customer selects "Smartwatch Y", send Smartwatch Y Setup Guide (PDF).'}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(n.h3,{id:"job-application-with-position-specific-documents",children:"Job Application with Position-Specific Documents"}),"\n",(0,o.jsx)(n.p,{children:"Scenario: A company collects applications for different job roles.Logic:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:'If an applicant selects "Software Engineer", send Coding Challenge (PDF).'}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:'If an applicant selects "Marketing Manager", send Marketing Case Study Assignment (DOCX).'}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:'If an applicant selects "Graphic Designer", send Design Portfolio Guidelines (PDF).'}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"how-to-send-attachments-in-email-notifications-based-on-form-answers",children:"How to send attachments in Email Notifications based on Form Answers"}),"\n",(0,o.jsxs)(n.p,{children:["You can achieve this by using the ",(0,o.jsx)(n.a,{href:"http://workspace.google.com/marketplace/app/appname/551326684766?utm_source=formnotify&utm_medium=website",children:"Form Notify -Email Notifications on Google Forms"})," add-on."]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:"After installing the add-on Create a New Processor"}),"\n",(0,o.jsx)(n.li,{children:'Opt for "HTML Editor" for Email body customization while setting up the Processor.'}),"\n",(0,o.jsxs)(n.li,{children:["Different Attachments can be sent using the ",(0,o.jsx)(n.a,{href:"/docs/customize-email/cu
1stomize-email-body-logical-constructs/",children:"logical constructs"})," Form Notify supports."]}),"\n",(0,o.jsx)(n.li,{children:"Here is a sample Logical construct to attach a Google Drive file based on Form Answers"}),"\n"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{children:"{%codeblock%} \n{%condition%} \nvar x = '{{Topic}}'; \nif(x == 'Python Programming') return true ;else return false;\n{%endcondition%} \n{%result%}\n<p><i><b>You have opted for Python Study Material .</b></i></p>\nhttps://drive.google.com/file/d/1q9e00TiahpUrwxqGfVRwFncFCAAhdoNp/view?usp=drive_link\n{%endresult%} \n{%endcodeblock%}\n\n"})}),"\n",(0,o.jsx)(n.admonition,{type:"note",children:(0,o.jsx)(n.p,{children:"Please note that the Google drive files have to be shared publicly for the files to be attached successfully."})})]})}function m(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>r});var o=t(6540);const i={},s=o.createContext(i);function a(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.