So, I'm using a contact form in Spreadsheets add-on's HTML sidebar.
Also I have a source confirmation, before I start receiving the messages:
Congrats, you're one step away from receiving forms on
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-1lu-script.googleusercontent.com/userCodeAppPanel
Click the link below to confirm your form.
To prevent spamming, you'll have to repeat this step for every page where you insert your form.
I noticed that confirmation was requested few times already and the only difference is one number:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-2lu-script.googleusercontent.com/userCodeAppPanel
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-0lu-script.googleusercontent.com/userCodeAppPanel
The question is - will I keep getting new confirmation request emails and how many possible URL variations it may have or will it keep adding numbers to infinity and I will have to confirm them all?
I suppose that xxxxxxxxx part is my project ID or something related to my add-on, but what are those 0lu, 1lu, 2lu
They also appeared in a wrong order:
First -0lu-
Second -2lu-
Third -1lu-
Thanks for any clarification on that question.
Related
I am designing a ticketing system that runs through google forms and sheets. I want the agents to never have to interact with the actual sheet. I want to have a link/button in the email ticket where the agent can mark as resolved and the value in a cell in the sheet gets changed automatically.
Is this feasible?
It is possible and there are a couple ways to do it. I would suggest the below slightly different method than what your question asks (what if they accidentally click it!?).
Since you're already using google forms, I would send your people a link to another form that confirms a ticket should be closed. You code the link to pre-populate the ticket number to ensure that there's no human error in making sure they entered the proper ticket number.
See example to a form here with a link that will populate the form with a number from the link (I used your question #)
Once the user clicks submit, you can use that event to have your app script go modify your spreadsheet accordingly.
I'm trying to come up with a solution that will allow me to (1) pull data from Sheets for only ONE of the rows into a Gmail template and (2) allow for modifying the template with additional information that's not in the spreadsheet before sending it off.
Context: My organization uses an intake/referral log to track key information about referrals. Once info is in the Sheet, they manually send an email assigning the referral to an employee for follow-up. Much of the info in the Sheet is retyped...which initially made me think of automating this fully with AppsScript, so that all the standard info (case #, case type, due dates, etc) is included in that email. However, the emails sometimes have a paragraph or three of contextual information that we don't want to store in the spreadsheets and have pulled into the automated email.
So my goal is to pull the data from the spreadsheet into the email where I can (vs having to retype it) AND allow the addition of contextual info before sending it off to the assigned employee.
Any thoughts on how to accomplish this? I haven't found a mail merge add-on or Apps Script solution that allows doing this one row at a time and adding in extra custom info into the email.
Thanks in advance!
So this question, as currently written, could clearly be accomplished a whole bunch of different ways. With that in mind, here is one quick and dirty way in which it might be accomplished:
On the spreadsheet where the data is stored, create a script via tools>script editor.
Using that script, create a menu which runs a function that does the following, perhaps in an endless loop:
a. Prompt the user for the email address of where to send the email if it isn't in the spreadsheet or a token value, such as an empty string, to end the script.
b. Prompt the user for the number of the row where the info is stored.
c. Prompt the user for any extra contextual information to add to the email.
d. Get the info from the applicable row in the spreadsheet.
e. Create a nicely formatted email and send it off.
From there, the person in charge of doing the referrals would simply run the script and feed it the required information. Clearly human error could fowl things up here, but without more details of exactly how you want this to work, it isn't really possible to define exactly how to best protect against human error. Reading up on Data Validation might give you a start on that front.
And if you are still completely lost, I happen to be a Google Apps Script tutor/consultant who often gives away free tutoring/consulting. See tutoringbyroger.com for more on that.
I hope that helps.
I would like to use a Google Form as a sign-in and sign-out sheet on a single computer (kiosk style), and I am already aware of the built-in setting where once the form is submitted it gives the option to click to go back to a blank version of the form (so that someone else can make another entry). However, it would be handy to have a script that when the form was submitted it would automatically (without having to click) send the page back to a blank version of the form. Does anyone know a way to do this?
I did some research about how to possibly do this using openById or openByURL and kept getting an error that the function didn't exist. I then read on another StackOverflow question that for security reasons, Google removed these functions for use within a custom function.
What is the easiest way I can sync a sync a google sheet with a web page form (see attached picture)? Ideally an example code or tutorial.
Here is what I want: I want users to access my web page so they can select their name from a drop-down menu and put it next to the item they wish. Then once they click submit, each person's name value will be transferred from the webpage and then recorded into the corresponding cell inside the google spreadsheet. Then when the next user comes to the site, the fields will auto-populate from the google sheet so he will see who has picked what and what choices are left.
Ideally I would just send the users directly to the google sheet to make their selections, however, they can't edit it on a mobile phone without d/l the app and a bunch of other bogus roadblocks. Google Forms also does not work for this for several reasons.
Some things to keep in mind:
- the spreadsheet is totally public and editable. So I'm hoping to avoid the need to set up an API
- no security or login necessary for the users (I am not worried about if someone changes someone else's name)
I have spent weeks trying to find how to do this but I'm just a construction worker I don't know technology
SYNCING HTML FORM WITH GOOGLE SHEET
From Tanaike,
If you can use the web page as Web Apps of Google, I think that it can achieve what
you want using Google Apps Script, and you can get and put the values
of Spreadsheet. In this case, the Spreadsheet is not required to be
published. The document of Web Apps is [can be found in comments].
– Tanaike 10/19/2018
I have a Google form, it is set up to send emails on completion of the form. I followed http://www.labnol.org/internet/auto-confirmation-emails/28386/ pretty much exactly, just changing the text mainly. And it does indeed send emails on a submit, hooray!
The form itself has required questioned so a human shouldn't be able to submit the form without filling at least those questions in.
However, over the weekend (on Sunday 11th), three emails were sent with blank responses, even to the required questions!
So I think there are three likely explanations:
The required questions didn't work / structure of the form
momentarily errored and allowed three blank responses from a human.
Some sort of robot / crawling script somehow triggered a null submit
The form was completed by a human and the data was not recorded, nor included in the email.
Do any / all of those explanations make sense / seem plausible?
And if 3 is the answer, do you know if it was a transitory, maybe documented, error that happened on Sunday?
I do not see why a bot could not submit a google form. The onSubmit trigger is just as it sounds. As soon as the form is submitted the google script runs so regardless of what sends the information as long as it was submitted to the form the script will run.
This scrip does a check against blank data for the text body of the e-mail but nothing else.
I have tested this and can confirm that even if your google form has a question set as required, if it is a text or paragraph entry then all you have to do is enter space and it will consider that valid data. All form submissions should be stored on a google spreadsheet so I would recommend checking the spreadsheet responses to see if the cell is actually blank or if it contains data like ' '.
Personally I always use specific ranges when doing an auto response or if I need to work with data from a form submission. Generally data should always be in the same place on the spreadsheet.
Your script runs whenever a form is submited. So if a bot can bypass the check if question is empty and still submit it then your script will run anyway.