I need help fast with an app

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 :slight_smile:

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

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

2 Likes

okay i have done it now :slight_smile:

@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

1 Like

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.

2 Likes

that is okay with me

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

1 Like

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
            
                                           
 });
1 Like

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

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.

2 Likes

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

2 Likes

it says this when i try to save it

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

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

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

okay but thanks

1 Like

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.

1 Like

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

You can start with this.

https://docs.glideapps.com/all/reference/integrations/zapier

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

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

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