I created QR codes for students to scan to sign in and out of the washroom, and used a sheet in the excel page to copy the pre-filled form response link and changed the part to say "FormResponse" but when my students scan the QR codes, it makes them click a link before recording their response - is there anyway to make this so once the code is scanned, that's it? One step?
Related
I do not have any experience with apps script. Something I am trying to learn currently and this is my first project that I will be working towards.
My company that I work for use a mundane spreadsheet which is used as our purchase document. I have translated it to a Google Sheet that looks like this: https://docs.google.com/spreadsheets/d/1mZlzeu9-9Mb0B1VmlNSJDfCxELqci4KRc_HFbRt3NwM/edit?usp=sharing
Currently, anyone that makes a purchase needs to fill out this spreadsheet and send along a copy of the receipt of the purchase via email to our billing person.
The Google Form I want to create to streamline this will contain basic information like the name of the person filling it out and an email address. I would add some of the items below along with a Google Drive Upload so that the person can upload a picture of the receipt(s).
What I would want to have happen is on a Google Form response, I would like apps script to do the following, in this order:
Create a copy of the spreadsheet linked above and Title it as "[Team Name] [Date] Credit Card Request"
Fill it with the information that is needed:
Date of Transaction
Amount Request
Vendor Name
Program Name (I think this can be done away with because of Team)
Team
When the spreadsheet is filled out, I would like to then email the billing person a completed XLSX copy along with the file attachments that were uploaded for that response.
3a. Sending a copy of the same email to the person filling out the form originally would be a plus.
Because of the format of this spreadsheet, when the team is specified, I am hoping I can have the Apps Script set the value of the corresponding cell for that team (a checkbox) to TRUE.
I may ask for some assistance with this later on, but I am wondering, **is this possible to do? **
My apologies, I do not have any script experience, not sure where to even start.
I am trying to create a log for all the PDIR reports that are generated in our company. For this purpose, I have written an apps script code that brings forth a format from our master sheet when a product part no. is typed. After filling in the information it allows the user to press the submit button that transfers this PDIR to a PDIR database where all the PDIRs are being stored. Now, what I want to do is, add a feature to the submit button that automatically creates a log for the PDIR report. I have attached the format here for reference. I want to find a way to extract the URL of a particular sheet and add the link in the log next to the invoice, so my employees do not have to waste time finding different invoices and can just search for the invoice no. and have a link ready to take them to it.
Long story short, I want to find a way to get a URL of a sheet from a different spreadsheet using apps script.
The goal is to update row items by grabbing a unique itemID number for each item's qr code url (generated by a qr code IMAGE function).
Problem: This does not generate a QR code and infact does not even give an error in google sheets: =image("https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=" &ENCODEURL("https://script.google.com/..../dev?v=update&itemID=123"))
How do I get that 123 in the encoded url?
Additional Context to my Question:
I already have a working web app that interacts with google sheets database and allows users to update specific cell items by searching the database. I am essentially automating by upgrading by rather than making user search 1000 items, they just scan a QR code for that particular item.
I believe that the next step would be to skip encoded characters and use query parameters. I could then pass the parameters to any function as needed. Essentially I have figured out Step 2 before Step 1.
Possible Unclear Solution
I also looked into qrcode generator API but did not get information on how to add any additional data like itemID to a QR code except for data & size. Is the only way to do it by encoding the itemID by using &itemID=123 then? I have also researched this link already: Is there a simple script one could you to scan QR code data and directly enter data the information into a specific column of the Google spreadsheet?
I appreciate the folks here for constant help and guidance.
I have an spreadsheet linked with a form and made it as, all the user to edit the response after submit. And connected it with Awesome Table. When i insert a data through the form, the spreadsheet automatically generate the edit response url. this is done by gas. This isworking fine. But, what i want now is, how can i generate the response url for the data which i paste directly to the sheet from another sheet? is it possible? please help me with some suggestions or a piece of code.
Thanks in advance.
It's not possible to do this.
The forms services and the sheets service are two separate services. This is a simplified version of what happens when you submit a response to a form:
The form is submitted.
The forms service stores the response.
The forms service writes the response to a sheet.
When you use the EditResponseURL() method, you're getting the information from step 2), and editing it. This then causes the form to complete step 3) a second time, updating the sheet.
If you write the response directly to the sheet, you're skipping step 1) & 2). If the response is not stored in the form, there's no way to use the EditResponseURL() (As this is a forms only method).
Easy solution: Submit everything via the form, and do not write directly to the sheet.
More complicated solution: Write a custom form that allows you to pull the information in a range of cells from a sheet, update the information, then writes the edited information back to the sheet.
The second Sheet would need to "know" what it was looking for. The second sheet can retrieve anything it needs from the first sheet, but it needs information about what to retrieve. You would need to explicitly record information that matches some kind of key to the information that should be retrieved. The first Sheet could have information on what response is matched to what row of information. You could have an ID that was just sequential numbers, or you could have an ID (key) that encoded the user name, the date, the time, a random number, a row number, etc. if you need/want that. Your essentially designing a database structure.
It might help to define a flow chart of the process.
Two days on and I'm ripping my hair out.
I need to upload hundreds of 'png' attachments into a table (i.e. not one by one to each account code) where they automatically find the relevant account code in the table by matching the account code to the attachment file name.
Alternatively I need to upload all the attachments to a single place and then have a search query that allocates these attachments to their specific account codes in a table.
I have been able to come up with a query that allocates ALL of the attachments to ALL of my relevant account codes but cannot allocate specific attachments using the data filename for reference to a specific account code.
I have also been able to create a form that shows the relevant attachment under the data filename but this will not open from this field when I double click it. When I open the attachment itself from the form it just gives the 'manage attachment' box showing every single attachment for me to select the one I want. This is of no use for my customer.
I'm sure it has to be simple but I have spent ages on this so can anyone please help.
Graham