SebZiHub / aars-test

Anonymous for Animal Rights Switzerland | Test Page
https://sebastian-zimmermann.ch/aars-test/
0 stars 1 forks source link

Integrate google forms via API #15

Open lufonius opened 3 months ago

lufonius commented 3 months ago

Submit to google form with a form on the website via API call.

SebZiHub commented 3 months ago

thoughts on possible implementation:

Result would look something like this:

<form class="form" action="https://docs.google.com/forms/d/e/.........../formResponse">
<label>Name</label>
<input name="entry.742532386" type="text" />
<label>Email</label>
<input name="entry.1558941179" type="email" required />
<input type="submit" value="Send" />
</form>

Note that when submitting, Google performs an input validation as configured inside the actual form. If everything is OK, it will just show the usual page you'd get after submitting something. Otherwise the whole page is shown again with the current values.