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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:21:01+00:00 2026-05-26T11:21:01+00:00

Since Sencha Touch has all the interface elements, I decided to use it. Can

  • 0

Since Sencha Touch has all the interface elements, I decided to use it. Can someone tell me how to integrate the existing value in an items “HTML” config?

Codes are showing below:

I’ve got a form1

var form1 = new Ext.form.FormPanel({
    id: 'form1',
    standardSubmit : false,
    scroll:'vertical',
    dockedItems: [
        form1topToolBar
    ],
    items: [
        {
            xtype: 'textfield',
            name: 'form1One',
            label: 'Name'
        }
    ]    
});

I’ve also got a form2

var form2 = new Ext.form.FormPanel({
    id: 'form2',
    standardSubmit : false,
    scroll:'vertical',
    dockedItems: [
        form2topToolBar
    ],
    items: [
        {
            html: [
                '<table class="outputTable">',
                '<tr>',
                '<td>form1.getValues().form1One</td>',  <-------- Here is the value that I want. 
                '</tr>',
                '</table>'
            ]
        }
    ]    
});
  • 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-26T11:21:02+00:00Added an answer on May 26, 2026 at 11:21 am

    I’m going to assume you are trying to update the <td> element when the user changes values. Here is the code to do that:

        var form1 = new Ext.form.FormPanel({
            id: 'form1',
            standardSubmit : false,
            scroll:'vertical',
            dockedItems: [
                form1topToolBar
            ],
            items: [
                {
                    xtype: 'textfield',
                    name: 'form1One',
                    label: 'Name',
                    listeners: {
                        'change' : {
                            fn : function (field, newValue, oldValue, eOpts) {
                                var myUpdatedText;  // example of calculated text
                                myUpdatedText = form1.getValues().form1One;
                                myUpdatedText += form2.getValues().form2Two;
                                Ext.getCmp('form2ChangingField').update({
                                    updatedText : myUpdatedText
                                });
                            }
                        }
                    }
                }
            ]    
        });       
    
        // other code here... then definition of form2 starts here
    
        var form2 = new Ext.form.FormPane({
            id: 'form2',
            standardSubmit : false,
            scroll:'vertical',
            dockedItems: [
                form2topToolBar
            ],
            items: [
                {
                    xtype: 'textfield',
                    name: 'form2Two'
                },
                {
                    id: 'form2ChangingField',
                    tpl: new Ext.Template('<table class="outputTable">'+
                                          '<tr>'+
                                          '<td>{updatedText}</td>'+
                                          '</tr>'+
                                          '</table>'
                    );
                }
            ]
        });  
    

    Go here to learn more about templates.

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

Sidebar

Related Questions

I have an app that has several different pages that use Sencha Touch. Ocassionally
Since the keyboard is the interface we use to the computer, I've always thought
Since the WebSQL has lost all the support and the development being stopped, how
Since both a Table Scan and a Clustered Index Scan essentially scan all records
Since the release of Adobe AIR I am wondering why Java Web Start has
Since the control emits bizzare non-standard HTML, I'm wondering if it has any practical
Since C# uses Garbage Collection. When is it necessary to use .Dispose to free
Since I cannot pre-render all the images in PNGs and real-time image transformation functions
I'm just working on a web application with sencha touch. I need to implement
since last post, did all the changes suggested but this problem still haunts me.

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.