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 7563641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:42:56+00:00 2026-05-30T13:42:56+00:00

I have a form that uses google docs and when you submit it will

  • 0

I have a form that uses google docs and when you submit it will go to googles default thank you page. What I want to do is use ajax instead to send the data so the user won’t leave the site. Google requires certain hidden fields for their end. How can I pass hidden fields in ajax? Below is the code I wrote.

                   $.ajax({
                        type: "post",
                        url: "https://spreadsheets.google.com/formResponse?formkey=HEREISWHEREMYKEYGOES",
                        data: "name=entry.1.group&value=24",
                        success: function() {
                            alert("yay")
                        },
                        error: function(e) {
                            console.log(e);
                        }
                    });
  • 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-05-30T13:42:57+00:00Added an answer on May 30, 2026 at 1:42 pm

    If you want to add fields to a string in javascript, you can use below code. Make sure to replace Whateverfield to the actual field, but I would need to see the HTML to provide a full answer.

    formKey = $('Whateverfield').val();
    $.ajax({
        type: "post",
        url: "https://spreadsheets.google.com/formResponse",
        data: "name=entry.1.group&value=24&formkey=" + formKey,
        success: function() {
            alert("yay")
        },
        error: function(e) {
             console.log(e);
        }
    });
    

    Ideally, you use something like this for the data:

    data: { 
       name: "entry.1.group",
       value: "24", 
       formKey: $('Whateverfield').val()
    },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that uses jQuery to submit an ajax post and it
I have a form that uses ajax to submit data to a mysql database,
I currently have a PHP form that uses AJAX to connect to MySQL and
I have a contact us form that uses Ajax (i.e. relies on asynchronous requests).
I have a form that uses Richtexteditor of Flex3 to write in their reply.
I have a Django form that uses a different number of fields based on
I have a WPF form that uses ClientLogin to log a user into their
I have a Django form that uses an integer field to lookup a model
The basics: I have a contact form that uses php to validate the forms.
I have a basic CRUD form that uses PageMethods to update the user details,

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.