Google Forms: Send data to spreadsheet

前端 未结 6 835
情深已故
情深已故 2020-12-08 08:26

How can I send the data from a webform to a google spreadsheet? I made a form with Google Drive, but to get custom CSS running, I need to copy the form tag.

In my ca

6条回答
  •  失恋的感觉
    2020-12-08 09:22

    Here's what worked for me:

    1. Create your custom form
    2. Create your Google form and view the source after clicking view live form
    3. Copy the html code starting from
      till
    4. Each of the input fields in the Google form have name and id attributes which need to be copied to your personal form
    5. Use the URL in the form action of Google forms in your form.
    6. Make sure that even the submit button has the ID and name attributes matching with the Google form source.
    7. If you make a submit now, it will take you to the Google form response page. You can avoid this by making an ajax form submit.

    If your custom form does not validate a Google form mandatory element, then you will again be redirected to the Google form page.

提交回复
热议问题