# I need help fast with an app

**URL:** <https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353>\
**Category:** Ask for Help\
**Created:** [December 27, 2020, 7:50pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353 "2020-12-27T19:50:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bad\_Habits](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bad_habits/32/18724_2.png) [@Bad\_Habits](https://community.glideapps.com/u/Bad_Habits)\
**Post date:** [December 27, 2020, 7:50pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/1 "2020-12-27T19:50:24Z")

</div>

hey, I want to make an app where you can send pictures via this app to an email.

1. I want to know how can I make a choice Component where I can select 1,2,3,4 and if I click 4 I get 4 slots where I can put pictures in it. but if it is possible then I will like to have a picture picker but where i can select multiple pictures,

2. after I have done that I want to send all of the pictures to an email how can I do that.

3. I will like to have if it is possible that it send the pictures in pdf not links 🙂

If you can make this of good quality I will pay you

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [December 27, 2020, 8:08pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/2 "2020-12-27T20:08:20Z")

</div>

@Bad_Habits please try to reread your post. The post doesn’t seem very clear.

---

<div class="post-metadata">

**Author:** ![Bad\_Habits](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bad_habits/32/18724_2.png) [@Bad\_Habits](https://community.glideapps.com/u/Bad_Habits)\
**Post date:** [December 27, 2020, 8:29pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/3 "2020-12-27T20:29:48Z")

</div>

okay i have done it now 🙂

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [December 27, 2020, 10:00pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/4 "2020-12-27T22:00:57Z")

</div>

@Bad_Habits  
It helps a lot when you try to make your needs clearer.

I can give you a few tips.

You can create multiple image pickers and put visibility on them. Only show number 2 when one is filled and here don’t show number 3 and 4. Etc

Right now I would think that you have to submit the form with the info of the images before you can send an email.

Maybe other can chip in on your question

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [December 27, 2020, 10:16pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/5 "2020-12-27T22:16:14Z")

</div>

Seems pretty straightforward. The only issue you’re gonna run into is that when the email get sent, the email won’t actually have picture attachments but rather links to those images. If you’re OK with that, we can help you proceed.

---

<div class="post-metadata">

**Author:** ![Bad\_Habits](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bad_habits/32/18724_2.png) [@Bad\_Habits](https://community.glideapps.com/u/Bad_Habits)\
**Post date:** [December 27, 2020, 10:17pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/6 "2020-12-27T22:17:10Z")

</div>

that is okay with me

---

<div class="post-metadata">

**Author:** ![Bad\_Habits](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bad_habits/32/18724_2.png) [@Bad\_Habits](https://community.glideapps.com/u/Bad_Habits)\
**Post date:** [December 27, 2020, 10:18pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/7 "2020-12-27T22:18:08Z")

</div>

robert i have also sent you a mail a few days ago

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [December 27, 2020, 10:21pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/8 "2020-12-27T22:21:37Z")

</div>

you can write a triggered script to create pdf from a sheet where you can have IMAGE() with links to these pictures and then attach it:

// get PDF

var PDFsheet\_ID = ‘ **your sheet Id here** ’; //pdf sheet ID  
var requestData = {“method”: “GET”, “headers”:{“Authorization”:"Bearer "+ScriptApp.getOAuthToken()}};

```
      var URL = "https://docs.google.com/spreadsheets/d/"+PDFsheet_ID+"/export"+
                                                                 "?format=pdf&"+
                                                                     "size=a4&"+
                                                                    "fzr=true&"+
                                                               "portrait=true&"+
                                                                   "fitw=true&"+
                                                             "gridlines=false&"+                                                      
                                                              "pagenum=CENTER&"+
                                                              "attachment=true";  

var response = UrlFetchApp.fetch(URL,requestData).getBlob(); 
    
 MailApp.sendEmail({
                    to: email, 
                
               subject: subject, 
                  body: body,
 
        
   attachments:[{fileName:filename + ".pdf", content: response.getBytes(),mimeType: "application//pdf"}],
   
      htmlBody: body
            
                                           
 });
```

---

<div class="post-metadata">

**Author:** ![Bad\_Habits](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bad_habits/32/18724_2.png) [@Bad\_Habits](https://community.glideapps.com/u/Bad_Habits)\
**Post date:** [December 27, 2020, 10:25pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/9 "2020-12-27T22:25:46Z")

</div>

okay thank you for helping me. but where should i set the code in? and how

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [December 27, 2020, 10:26pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/10 "2020-12-27T22:26:01Z")

</div>

I imagine you’re going to have a sheet that has columns for each of your four images as well as a number column to house your quantity. All of these columns are going to be user specific unless they’re on a user profile sheet if you’re requiring your users to sign in. Create a screen which allows them to select the quantity via choice component and then based on the quantity, use visibility conditions like @Krivo said to display that many number of image components each writing to their own column.

To get the images into an email, you can craft the body of an email in a template Column making sure to include each of the four image columns as variables in the template column.

To send the email, create a button with a custom action. In this action, first include a compose email action that includes all of the columns and information that you need making sure that that template column is the email body field. Afterwords, use a set columns action to clear your user specific columns to prepare for the next time you want to add images.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [December 27, 2020, 10:30pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/11 "2020-12-27T22:30:04Z")

</div>

in google sheet, open a script editor and paste this code, add a onChange trigger to a cell that will activate this action.

---

<div class="post-metadata">

**Author:** ![Bad\_Habits](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bad_habits/32/18724_2.png) [@Bad\_Habits](https://community.glideapps.com/u/Bad_Habits)\
**Post date:** [December 27, 2020, 10:36pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/12 "2020-12-27T22:36:54Z")

</div>

it says this when i try to save it

SyntaxError: Invalid or unexpected token (line 2, file “Kode.gs”)

---

<div class="post-metadata">

**Author:** ![Bad\_Habits](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bad_habits/32/18724_2.png) [@Bad\_Habits](https://community.glideapps.com/u/Bad_Habits)\
**Post date:** [December 27, 2020, 10:37pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/13 "2020-12-27T22:37:58Z")

</div>

hey thanks you for your post i am totally new to this so when you say.

Create a screen which allows them to select the quantity via choice component and then based on the quantity, use visibility conditions like @Krivo said to display that many number of image components each writing to their own column.

how do I do that

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [December 27, 2020, 10:40pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/14 "2020-12-27T22:40:55Z")

</div>

oh, if it is your first time to do script, forget about it …  
just do action in Glide to send email with links

---

<div class="post-metadata">

**Author:** ![Bad\_Habits](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bad_habits/32/18724_2.png) [@Bad\_Habits](https://community.glideapps.com/u/Bad_Habits)\
**Post date:** [December 27, 2020, 10:43pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/15 "2020-12-27T22:43:56Z")

</div>

okay but thanks

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [December 27, 2020, 10:47pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/16 "2020-12-27T22:47:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/f/6fe56ea299fb43824d70081b5f584cdae19aebfd.png)

Or you can use Zapier with Glide, trigger a Zap when you submit the form, and fill the attachments with the image links from Glide.

---

<div class="post-metadata">

**Author:** ![Bad\_Habits](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bad_habits/32/18724_2.png) [@Bad\_Habits](https://community.glideapps.com/u/Bad_Habits)\
**Post date:** [December 27, 2020, 10:58pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/17 "2020-12-27T22:58:43Z")

</div>

is there any tutorial or can you tell like the steps I am new to this and I need to be finished before the new year? with this app

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [December 27, 2020, 11:01pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/18 "2020-12-27T23:01:29Z")

</div>

You can start with this.

[https://docs.glideapps.com/all/reference/integrations/zapier](https://docs.glideapps.com/all/reference/integrations/zapier)

Let us know if we can help more if the deadline is tight.

---

<div class="post-metadata">

**Author:** ![Bad\_Habits](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bad_habits/32/18724_2.png) [@Bad\_Habits](https://community.glideapps.com/u/Bad_Habits)\
**Post date:** [December 27, 2020, 11:05pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/19 "2020-12-27T23:05:32Z")

</div>

okay great that is just what I need when I have made the choice button do you know how I can do that and made it work with a picture picker

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [December 27, 2020, 11:07pm UTC](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353/20 "2020-12-27T23:07:46Z")

</div>

You have 4 image picker components.

1st one: Always visible  
2nd one: Visible when Choice greater or equal to 2  
3rd one: Visible when Choice greater or equal to 3  
4th one: Visible when Choice equals 4

[Next page](https://community.glideapps.com/t/i-need-help-fast-with-an-app/20353.md?page=2)
