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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:07:25+00:00 2026-06-16T06:07:25+00:00

I am wondering how to add a duplicate panel underneath the previous existing panel

  • 0

I am wondering how to add a duplicate panel underneath the previous existing panel (“productOtherPanel”) using the “Add Product” button. I would like the new panel to be inserted below the existing “productOtherPanel” and above the “Add Product” button. I would also like this new panel to contain the same drop down list and text box as the original “productOtherPanel”. I need this panel to duplicate an infinite number of times. Is this possible?

function doGet(e) {
  var app = UiApp.createApplication();

  var productOtherPanel = app.createHorizontalPanel().setId('productOtherPanel');
  var productPanel = app.createVerticalPanel().setId('productPanel');
  var productList = app.createListBox().setName("productList").setId('productList');
  productList.addItem("8:1 Compressed Blocks");
  productList.addItem("8:1 Compressed Briquettes");

  var pricePerTonPanel = app.createVerticalPanel().setId('pricePerTonPanel');
  var pricePerTonTextBox = app.createTextBox().setId("pricePerTonTextBox").setName("pricePerTonTextBox")
  .setText("$0.00");

  var buttonPanel = app.createVerticalPanel().setId('buttonPanel');
  var button = app.createButton("Add Product");

  app.add(productOtherPanel);
  productOtherPanel.add(productPanel);
  productPanel.add(productList);

  productOtherPanel.add(pricePerTonPanel);
  pricePerTonPanel.add(pricePerTonTextBox);

  app.add(buttonPanel);
  buttonPanel.add(button);

  return app;
}
  • 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-16T06:07:27+00:00Added an answer on June 16, 2026 at 6:07 am

    Try to see if this code is what you are looking for:

    function doGet(e) {
      var app = UiApp.createApplication();
    
      var productOtherPanel = app.createVerticalPanel().setId('productOtherPanel');
      var productPanel = app.createHorizontalPanel().setId('productPanel');
    
      // Product list dropdown
      var productList = app.createListBox().setName("productList").setId('productList');
      productList.addItem("8:1 Compressed Blocks");
      productList.addItem("8:1 Compressed Briquettes");
    
      // Product Price Textbox
      var pricePerTonTextBox = app.createTextBox().setId("pricePerTonTextBox").setName("pricePerTonTextBox").setText("$0.00");
    
      productPanel.add(productList);
      productPanel.add(pricePerTonTextBox);
    
      var buttonPanel = app.createVerticalPanel().setId('buttonPanel');
      var button = app.createButton("Add Product");
      button.addClickHandler(app.createServerHandler("addProductHandler").addCallbackElement(productOtherPanel));
    
      app.add(productOtherPanel);
      productOtherPanel.add(productPanel);
    
      app.add(buttonPanel);
      buttonPanel.add(button);
    
      return app;
    }
    
      function addProductHandler(e) {
        var app = UiApp.getActiveApplication();
    
        var productPanel = app.createHorizontalPanel().setId('productPanel');
    
        // Product list dropdown
        var productList = app.createListBox().setName("productList").setId('productList');
        productList.addItem("8:1 Compressed Blocks");
        productList.addItem("8:1 Compressed Briquettes");
    
        // Product Price Textbox
        var pricePerTonTextBox = app.createTextBox().setId("pricePerTonTextBox").setName("pricePerTonTextBox").setText("$0.00");
    
        productPanel.add(productList);
        productPanel.add(pricePerTonTextBox);
    
        var panel = app.getElementById("productOtherPanel");
        panel.add(productPanel);
    
        return app;
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wondering how to add an image to the jquery button. Till now
I'm using ajax powered WordPress theme which has hashbang URLs like www.example.com/#!/page. I'm wondering
Possible Duplicate: How to make text glow? I am wondering how to add an
I was wondering how to add a scrolling menu to my app like tiny
I am new to Java and I was wondering how to add functionality to
Just wondering if there is an easy way to add the functionality to duplicate
I was wondering how to add our own custom icon to the web page
I'm wondering how to add onblur=hcb.watermark.blur(event) onfocus=hcb.watermark.focus(event) style=color: rgb(136, 136, 136); to the following
i'm currently wondering how to add more localizations to my PhoneGap App on the
I have only used MapRoute and slightly wondering where Routes.Add is used and on

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.