This article introduces sample code to redirect to a specific URL after clicking the submit button on a Google Form.
Prerequisites
The prerequisite is to achieve the following flow:
- Open the Google Form URL from an Android/iOS app
- Fill in the necessary information in the Google Form and click the [Submit] button
- After [Submit], redirect to Deep Link/Custom URL Scheme to reopen the Android/iOS app
Sample Code to Redirect After Google Form Submission
The same sample code as below is published at https://codenote-net.github.io/sandbox/google-form-redirect/ for testing purposes.
Redirect after submitting Google Form
Redirect after submitting Google Form - Stack Overflow
Concerns with Google Form + JS Processing for Redirect
While the above sample code successfully redirects after Google Form submission using JavaScript processing, here are the points I find questionable:
- Cannot use the Google Form URL as-is
- Need to host an HTML file that embeds the Google Form iframe somewhere
- Cannot display the Google Form in fullscreen within the iframe (might be possible with CSS/JS efforts?)
That’s all from the Gemba on redirecting to a specific URL after clicking the submit button on a Google Form.