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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:13:24+00:00 2026-06-13T16:13:24+00:00

I am new to sencha touch and I am having trouble loading a form

  • 0

I am new to sencha touch and I am having trouble loading a form into a view.

In my app.js I am loading the main view as such

Ext.Viewport.add(Ext.create('app.view.Main'));

My full app.js is as follows

Ext.application({
    name: 'app',

    requires: [
        'Ext.MessageBox',
        'Ext.form.FieldSet',
    ],

    views: ['Main'],


    launch: function() {

        // Initialize the main view
        Ext.Viewport.add(Ext.create('PlanPouch.view.Main'));
    },
});

My main view is:

Ext.define("app.view.Main", {
    extend: 'Ext.Container',
    config:{
        items:[
            form
        ]
    }
});

var form = Ext.create('Ext.form.Panel', {
    fullscreen: true,
    items: [
        {
            xtype: 'textfield',
            name: 'name',
            label: 'Name'
        },
        {
            xtype: 'emailfield',
            name: 'email',
            label: 'Email'
        },
        {
            xtype: 'passwordfield',
            name: 'password',
            label: 'Password'
        }
    ]
});

I took the form from the official documentation and the form doesn’t load for some reason. So how can I add the form to my main view?

  • 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-13T16:13:25+00:00Added an answer on June 13, 2026 at 4:13 pm

    First let it solve by your approach. Make the following changes & it should work in your system (Running on mine):-

    1.) In app.js

        Ext.Viewport.add(Ext.create('app.view.Main'));
    

    2). In Main.js

                Ext.define("app.view.Main", {
                    extend: 'Ext.Container',
                    config:{
                        items:[
                           {
                             xtype: form
                           }
                        ]
                    }
                });
    
                var form = Ext.create('Ext.form.Panel', {
                    fullscreen: true,
                    items: [
                        {
                            xtype: 'textfield',
                            name: 'name',
                            label: 'Name'
                        },
                        {
                            xtype: 'emailfield',
                            name: 'email',
                            label: 'Email'
                        },
                        {
                            xtype: 'passwordfield',
                            name: 'password',
                            label: 'Password'
                        }
                    ]
                });
    

    But i will not prefer to call the formpanel in the way you are doing.
    Rather you can follow ARolek answer OR follow this approach :-

    1) app.js

            Ext.application({
                name: "app",
                views: ["Main","second"],
    
                launch: function () {
    
                    Ext.Viewport.add(Ext.create('app.view.Main'));
                }
            });
    

    2) Main.js

            Ext.define("app.view.Main", {
             extend: "Ext.Container",
             requires:["app.view.second"],
             config:{
                fullscreen: true,
                  layout: 
                        {
                        type: 'fit'
                        },
                    items:[
                      {
                        xtype: "form"
                      }
                    ]
                }
            });
    

    3) second.js

            Ext.define("app.view.second", {
            extend: "Ext.form.Panel",
            requires:['Ext.form.FieldSet','Ext.Toolbar'],
            alias: "widget.form",
            config:
            {
                items: 
                [       
                    {
                        xtype: 'fieldset',
                        title: 'About You', 
                       items: [             
                        {
                            xtype: 'textfield',
                            name: 'name',
                            label: 'Name'
                        },
                        {
                            xtype: 'emailfield',
                            name: 'email',
                            label: 'Email'
                        },
                        {
                            xtype: 'passwordfield',
                            name: 'password',
                            label: 'Password'
                        }
                        ]
                    }
                ]
            }           
            });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I new in sencha touch and I make a simple login form wichh accepts
I'm new to Sencha Touch, and I need to create a form where you
I'm writing a Sencha Touch 1.1 MVC app. My view code looks like this
I am trying to customize an Ext.form.Slider in Sencha Touch 1.1. This is my
I'm programming a Sencha Touch app with a moderately complex composition of Ext.TabBar with
I am very new to sencha-touch & started to build simple Login form. My
I have a MVC-styled sencha touch app and normally I used Ext.apply(app.views, { loginPage:
I'm new to Sencha Touch and the Ext JS logic. Actually, I'm displaying a
I'm calling a web service with my Sencha Touch mobile app: Ext.regModel('BaseResponse', { idProperty:
I'm using sencha touch and having problems with sorting a Ext.list by number via

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.