0

I want to use google forms to collect questionnaire responses but with a much more custom UI for doing so. Is there a way to send in responses from my custom application to my google forms api?

Rubén
  • 29,320
  • 9
  • 61
  • 145
user2167582
  • 5,429
  • 12
  • 54
  • 104

2 Answers2

1

If you want to update the form's layout, it is possible to update it from your application using the Google Forms API. However, the Google Forms API currently does not support sending responses to your form, as shown here

Tony BenBrahim
  • 6,717
  • 1
  • 36
  • 47
stanley355
  • 21
  • 2
  • why is that? that feels incredible undermining considering there could be scenarios where pipielines and move data from other sources to google forms. – user2167582 Apr 03 '22 at 05:21
  • My guess would come from the business-side, Google Form is meant for non-programmer user who wants to create simple form and save the response to the excel. However for our kind (programmer) we can send the API data directly to the excel – stanley355 Apr 04 '22 at 07:45
1

At this time the Google Forms REST API doesn't support creating form responses as the Form.responses resource only includes two methods: get and list. Ref. https://developers.google.com/forms/api/reference/rest/v1/forms.responses?hl=en

You might use the Forms Service from Google Apps Script to create Google Forms Responses programmatically. To call this service from your app you might create a web-app in order have a HTTP GET / POST request end-point or use the Google Apps Script REST API.

Another option might be to use a "hack" to emulate the Google Forms POST request. See Auto-Fill or automate a Google Form

Related

Rubén
  • 29,320
  • 9
  • 61
  • 145
  • That seems like something google forms didn't intend for 3rd party apps to use and the concern would be that they can suspend that API at any point of time. – user2167582 Apr 05 '22 at 05:57
  • Have you considered the first option (Google Apps Script)? – Rubén Apr 05 '22 at 13:20
  • Oh just realized that those are different concepts, so you are suggesting interacting with the Google AS Rest API and have that run the Google Forms submission – user2167582 Apr 06 '22 at 09:17