Just to clarify (because I understood it wrong): This adds a datapoint with value 1 to your goal, irrespective of your Google Forms input (= “Track whenever a response to this form is submitted.”)
To add datapoints from the content of a Google Form entry, I am using Zapier: Each form submission creates a row in a spreadsheet, each new row triggers (via Zapier) a datapoint in a beeminder goal. This works well.
Out of interest: → @narthur, do you or does anyone know if I can achieve the same by editing your function?
To specify: I submit the form with a value from 1-10 and want the beeminder datapoint to reflect the number I submitted not just count how often I submitted.
From the looks of it, the payload would need to be adjusted, replacing ‘1’ corresponding to value (the value of the new datapoint) to the value you wish to submit.
The payload could also contain other data the endpoint accepts, such as comment, timestamp, daystamp, and requestid.
I do not know how to obtain that value from the form.
That’s awesome!! Seems like you might be able to do some interesting things with this, like having a goal track data that other people enter through a form…