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

  • Home
  • SEARCH
  • 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 9110791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:21:11+00:00 2026-06-17T03:21:11+00:00

I am using a form inside an accordion structure (jQueryUI), on the HTML Services

  • 0

I am using a form inside an accordion structure (jQueryUI), on the HTML Services in Google App Script. And the form structure looks something like this:

Accordion with form on HtmlService

Accordion with form on HtmlService

And the relevant code is as follows:

    <div id="accordion">
    <h3 id='academic-information'>
       <a href='#'>
            <label><input class='header-checkbox' type='checkbox' />Academic Information</label>
      </a>
    </h3>
    <div>
    <form id='calcForm'>
      <label>Choose from a Student Type: </label><br />
    <input name = "stateTuition" type="radio" id = 'sTuition' value='0'/>Resident Student<br />
    <input name = "stateTuition" type="radio" id = 'sTuition' value ='1'/>Non-Resident Student<br />
      <br /><br />
      <label>Stipulated period of Education :</label><br />
      <input name = "academicTrack" type="radio" id = "aTrack" value='0' />4 Years - 15 cr./semester<br />
     <input name = "academicTrack" type="radio" id = "aTrack" value='1' />5 Years - 12 cr./semester<br />
     <input name = "academicTrack" type="radio" id = "aTrack" value='2' />6 Years - 10 cr./semester<br />
     <input name = "academicTrack" type="radio" id = "aTrack" value='3' />7 Years - Non-Traditional<br />
     <input name = "academicTrack" type="radio" id = "aTrack" value='4' />8 Years - Non-Traditional<br />
      </form>
    </div>
    <h3 id='campus-housing'>
        <a href='#'>
            <label><input class='header-checkbox' type='checkbox' />Campus Housing</label>
        </a>
    </h3>
    <div>
      <form id='calcForm'>
        <label>What is the nature of Housing Plan you wish to subscribe: </label><br />
        <input name = "housingType" type="radio" id = "hType" value='0' />No Housing<br />
   <input name = "housingType" type="radio" id = "hType" value='1' />Dorm<br />
 <input name = "housingType" type="radio" id = "hType" value='2' />Apartment<br />
        <br /><br />
        <label>Choose from a room type of your desire: </label><br />
         <input name = "roomType" type="radio" id = "rType" value='0' />No Housing<br />
     <input name = "roomType" type="radio" id = "rType" value='1' />Single Occupancy Room<br />
     <input name = "roomType" type="radio" id = "rType" value='2' />Double Occupancy Room<br />
     <input name = "roomType" type="radio" id = "rType" value='3' />Single Occupancy - Double Room<br /> 
        <br /><br />
      </form>
    </div>
    <h3 id='other-info'>
        <a href='#'>
            <label><input class='header-checkbox' type='checkbox' />Miscellaneous Information</label>
        </a>
    </h3>
    <div>
    <form id='calcForm'>
      <label>Subscription to On-Campus meal plans:</label><br />
      <input name = "campusMealPlan" type="radio" id = 'mPlan' value='0' />No Meal Plan<br />
     <input name = "campusMealPlan" type="radio" id = 'mPlan' value ='1' />Gold Plan 1<br />
 <input name = "campusMealPlan" type="radio" id = 'mPlan' value ='2' />Gold Plan 2<br />
 <input name = "campusMealPlan" type="radio" id = 'mPlan' value ='3' />Silver Plan 1<br />
 <input name = "campusMealPlan" type="radio" id = 'mPlan' value ='4' />Silver Plan 2<br />    
      </form>
    </div>
</div>
 <form id='calcForm'>
  <input type="button" value="Project Cost" onclick = 'google.script.run.withSuccessHandler(processCost).processForm(this.parentNode)'/>
</form>

Everything works fine except for, google.script.run which executes processForm is not able to pass all the values associated with form ‘calcForm’. I am assuming it is because the form is broken between the div’s. What is the solution to this, in other words how can I send in all the information collected through the form in the accordion to processForm function on clicking the submit button.

  • 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-17T03:21:12+00:00Added an answer on June 17, 2026 at 3:21 am

    You can’t break up a form that way. Why not just wrap the entire code in a single form with all the divs and jquery stuff inside of it?

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

Sidebar

Related Questions

I have form in my page, I am using ajax.beginform(). Inside this form I
I am using getJSON to populate form elements inside function(data) {...} by concatenating html.
Using a form inside a HTML such that the input is: <input id=afile type=file
I'm creating a registration form using validation inside the User model such as validates_confirmation_of
I am trying to draw a circle using Windows Form at runtime inside a
I'm building a WinForms application Window (form), inside that I'm using a FlowLayoutPanel, with
Using IE 7, JDK 1.6 and Sun Web server 7. Inside the jsp form,
I am trying to reset the values of all elements inside the form using
We are using Zend_Form inside a PHP application for building an input file html
Is it valid to have an HTML form inside of a 'section' tag? My

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.