How to add value on another section in google form in Unity3d

后端 未结 1 1563
温柔的废话
温柔的废话 2021-01-26 17:18

How can I add value on the other section on Google forms in unity3d?

I can only add values on section 1. I am having trouble on adding values on other sections.

1条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-26 18:08

    Unfortunately, it seems that this method of posting info to google forms is unreliable, as it's not well documented at all progress here is from looking at the html page code. I've followed the same tutorial and also having trouble.

    But fortunately, I've found a better solution that gives you better control and access to google forms.

    https://developers.google.com/apps-script/

    https://developers.google.com/apps-script/reference/forms/

    Instead of guessing the post API, using Google Apps Script, you can setup and deploy a web app from googles own servers in javascript, and interface with forms directly. From there you just have to design JSON payload. I got it working already using Postman to simulate the web request that will be sent from unity.

    In terms of the section issue your facing, in the google apps script javascript thats not too much an issue, as the sections are just used to visually break the front end up and they don't affect the data. However they are represented as an "item" in the backend, so when you are copying the answers from the JSON payload to the form responses be mindful which index your sections are so you can skip them and not accidentally loss data.

    0 讨论(0)
提交回复
热议问题