Bugs_Larnia

Logging Stuff on Google Docs with LSL

Jan 13th, 2021 (edited)
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Logging Stuff on Google Docs with LSL
  2. ======================================
  3.  
  4. ► Step 1: Setting up the Goodle Docs document
  5.  
  6. Example (entry ids and form id are fictional):
  7.  
  8. Create a form on Google Docs.
  9.  
  10. Add a field Key (type: Short answer text)
  11. Add a field Name (type: Short answer text)
  12. Add a field Date (type: Date & Time)
  13.  
  14. Fill in the example and then click the options (3 vertical dots) in the upper right and select "Get Prefilled Link". This will give you a link that looks something like this
  15.  
  16.  
  17. https://docs.google.com/forms/d/e/2DDpoQLSdTworfMiRoPy2kwWGk1gAboHb_AG2AF35X11B1nUNHP969Nc/viewform?usp=pp_url&entry.948371827=7cea7636-9167-44e4-ab7b-9a3ba11c330a&entry.839710298=Ema+Nymton&entry.205968371=2020-04-14+20:25
  18.  
  19. This can be split up in the following elements:
  20.  
  21. • Base url: https://docs.google.com/forms/d/e/
  22. • Form id: 2DDpoQLSdTworfMiRoPy2kwWGk1gAboHb_AG2AF35X11B1nUNHP969Nc
  23. • Entry id for Key field: entry.948371827
  24. • Entry id for Name field: entry.839710298
  25. • Entry id for Date field: entry.205968371
  26.  
  27. Plus, you can see how all the formats are (like Ema+Nymton for the name)
  28.  
  29.  
  30. ► Step 2: Constructing the url:
  31.  
  32. Based on the information above, you need to create an url that contains the same format of data. The only thing that is different is that instead of viewform, you will use formResponse and you need to add "submit=Submit" at the end.
  33.  
  34. With the example above, our url would look like this:
  35.  
  36. https://docs.google.com/forms/d/e/2DDpoQLSdTworfMiRoPy2kwWGk1gAboHb_AG2AF35X11B1nUNHP969Nc/formResponse?usp=pp_url&entry.948371827=7cea7636-9167-44e4-ab7b-9a3ba11c330a&entry.839710298=Ema+Nymton&entry.205968371=2020-04-14+20:25&submit=Submit
  37.  
  38. After that, all that remains is a simple llHTTPRequest with that url and Bob's your uncle and Ema's logged.
Add Comment
Please, Sign In to add comment