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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:54:34+00:00 2026-05-22T17:54:34+00:00

How do I create a form panel with smaller parts. The smaller parts should

  • 0

How do I create a form panel with smaller parts. The smaller parts should be reusable in the form panel.

  • 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-22T17:54:35+00:00Added an answer on May 22, 2026 at 5:54 pm

    I am using helper for this. Here is a example that should show you the trick.

    /// limitForm : array with all ellemts that should be taken from the inner form. can be null or empty to take all
    FormContent.loginForm = function (limitForm) {
        var defaults = [
        {/* this has the ID 0 */
            xtype: 'Fieldset',
            title: 'Username',
            layout: 'form',
            items: [
                {
                    xtype: 'panel',
                    layout: 'form',
                    header: false,
                    hideBorders: true,
                    bodyBorder: false,
                    border: false,
                    height: 40,
                    items: [
                        {
                            xtype: 'textfield',
                            fieldLabel: 'Username',
                            regex: /^[\w\s\.]*$/,
                            regexText: 'No special chars allowed in this field',
                            anchor: '100%',
                            name: 'LoginName'
                        }
                    ]
                }
            ]
        }
        ,
        {/* this has the ID 1 */
            xtype: 'Fieldset',
            title: 'Additional data',
            layout: 'form',
            items: [
            {   
                xtype: 'panel',
                layout: 'column',
                header: false,
                border: false,
                bodyBorder: false,
                height: 40,
                items: [
                    {
                        xtype: 'panel',
                        layout: 'form',
                        header: false,
                        columnWidth: 0.5,
                        hideBorders: true,
                        bodyBorder: false,
                        border: false,
                        items: [
                            {
                                xtype: 'textfield',
                                fieldLabel: 'Title',
                                anchor: '100%',                                             
                                name: 'Title'
                            }
                        ]
                    },
                    {
                        xtype: 'panel',
                        layout: 'form',
                        header: false,
                        columnWidth: 0.5,
                        style: 'margin-left: 18px',
                        hideBorders: false,
                        border: false,
                        bodyBorder: false,
                        labelWidth: 65,
                        items: [
                            {
                                xtype: 'textfield',
                                fieldLabel: 'Title',
                                anchor: '100%',                                             
                                name: 'Title'
                            }
                        ]
                    }
                ]
            }
        }
        ];
    
        if (limitForm) {
            var ds = [];
            for (var i = 0, len = limitForm.length; i < len; i++) {
                ds.push(defaults[limitForm[i]]);
            }
            defaults = ds;
        }
    
        return defaults;
    }
    

    If you want to reuse it you can modify the function params with config arrays or fieldnames (the names must changes otherwise just one field will get submitted). But I think it should show you the trick.

    For sure this mus be loaded in the mainform!

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

Sidebar

Related Questions

im trying to create a semi-transparent form which is displayed in a panel. i
I have a form with a panel docked in it. I then dynamically create
I am using ExtJS Forms. My form code is as follows: Ext.create('Ext.form.Panel', { width:
i have the problem with displaying fields on form var test = Ext.create('Ext.form.Panel', {
If you create a panel on a form and set it to Dock=Top and
var settingForm = Ext.create('Ext.form.Panel', { frame: false, bodyStyle: 'padding:5px 5px 0', modal: true, resizable:
In PHP you can create form elements with names like: category[1] category[2] or even
Using Zend_Form, how would I create form elements like this: <input type=text name=element[1] value=
I have a namespaced controller for some admin functionality. My create form does not
i create a form for order a item in flex. i use <mx:TextInput />

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.