Send ID to the Google Form URL and store it

2

I have created a Google form and I want that when the spreadsheet is filled store the data ID (identifier of the person) that is, I want to send that < em> ID in the URL .

This ID is unique and I take it out from a website where users have to log in. How could I do it?

I found an example that is very good, but I can not get the FORMKEY in the new forms.

link

    
asked by Aguirre 07.06.2017 в 10:01
source

1 answer

0

It seems to me that what you want to do is easier to achieve using the pre-filled URL. A Submit a form to respondents tells how to get it.

On the other hand, it also seems to me that the source you have used corresponds to a very old version because now the FORMKEY is simply called id . If I remember correctly, the id was the same for the form in edit mode as in published mode, but not now. Below I give an example of these URLs, I put the IDs in normal format.

Edition

  • https://docs.google.com/forms/d/ 1t-J3rvQDnsV6avLe-mn6Zf3QALmVp8iHnKz-UYH3Fow /edit

Published

  • https://docs.google.com/forms/d/e/ 1FAIpQLScwZm_emVRyey8N9gzD_fj-OEs5hhOrRnVM7it1KUowWPk_4A /viewform

If you continue with the intention of using the id, you may find it convenient to obtain it through Google Apps Script with the method getId .

    
answered by 12.06.2017 в 02:53