Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8684807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:23:58+00:00 2026-06-12T22:23:58+00:00

I created a Google Form and made a Google Apps Script gadget to post

  • 0

I created a Google Form and made a Google Apps Script gadget to post the data to the spreadsheet backend of the form and then return a custom html5 confirmation page.

I used HTMLService, doPost(e) and doGet(e) in my script code, and also created 2 html files with my gadget (the form and the confirmation html files).

The gadget it writing the data to the correct spreadsheet; however, it’s not returning the correct confirmation html file I created with my gadget. It’s returning the confirmation page which is part of the google docs form. A snip of the doPost portion of my code is below. Does anyone have any ideas how to make it return the custom confirm html file I created instead of the Google Forms one?

function doPost(e) {
  var template = HtmlService.createTemplateFromFile('confirm.html');
  template.entry_0 = e.entry_0;
  template.entry_1 = e.entry_1;
  template.entry_2 = e.entry_2;
  template.entry_3 = e.entry_3;
  template.screenshot = e.parameter.screenshot;
 return template.evaluate();  
}

The form action code line in my form.html file is below.

<form action="<?= "https://docs.google.com/spreadsheet/formResponse?formkey=$mungedformkey" ?>" method="post">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:23:59+00:00Added an answer on June 12, 2026 at 10:23 pm

    When you post to a URL, that URL is what decides what happens next – your doPost is never getting invoked. As an alternative, try posting to the script (either using doPost or better using the google.script.run post syntax) and using UrlFetchApp to pass the data to the form; then you will get to control the form response.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a form in Google Apps Script and embedded it into Google
I have created a UI App Form Panel in Google Apps Script with the
I have a form that I have created using Google App Script. And it
I have created a simple web app/form using google app engine. the site is
I've created a Google chart and I've added data taken from the database itself.
I am simply trying to use google apps script code to create a new
I created a form and a simple server with google appengine with which to
I have created a form in my Google App Engine application for users to
I created a google app engine project. I just successfully mapped it to a
I created a google web application from which I want to send emails. I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.