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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:42:12+00:00 2026-05-20T03:42:12+00:00

I have a editable FormPanel that looks like this: I now want to display

  • 0

I have a editable FormPanel that looks like this:

enter image description here

I now want to display the same form but so that the data is merely viewable instead of editable, i.e. instead of in textboxes, the data is simply displayed as text.

I can change the defaultType from textfield to panel but then the data isn’t displayed at all.

What type of defaultType do I need so that the data value is simply displayed as text instead of in an input box?

var simple_form = new Ext.FormPanel({
    labelWidth: 75,
    frame:true,
    title: 'Customer Information',
    bodyStyle:'padding:5px 5px 0',
    width: 600,
    height: 600,
    autoScroll: true,
    defaults: {width: 230},
    defaultType: 'textfield',
    items: [{
            fieldLabel: 'Item 1',
            name: 'item1',
            allowBlank:false,
            value: 'test'
        },{
            fieldLabel: 'Item 2',
            name: 'item2',
            value: 'test'
        },{
            fieldLabel: 'Item 3',
            name: 'item3',
            value: 'test'
        }, {
            fieldLabel: 'Item 4',
            name: 'item4',
            value: 'test'
            ...
  • 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-20T03:42:13+00:00Added an answer on May 20, 2026 at 3:42 am

    Use Ext.form.DisplayField. The API describes DisplayField as:

    A display-only text field which is not
    validated and not submitted.

    Set your defaultType to defaultType: 'displayfield', and the value property to the text you want to display. Take a look at the Composite Fields example. The two DisplayFields are “mins” and “hours”.

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

Sidebar

Related Questions

I would just like to have an editable div that acts like a textarea
I have an editable, grouped tableView, but swipe to delete doesn't work. It looks
I have an editable ComboBox component and I want to reference the TextInput that
I have an editable grid that uses a store. I want to insert a
I have an editable iframe with some textnodes. During editing i want (on some
I have a form in which I have an editable authors field. When I
I have an activity that contains several user editable items (an EditText field, RatingBar,
I want to know is there any way to have editable table in ASP.net
I have requirements to have an Editable region underneath the header, but above the
Is there a way in jqgrid to have an editable column that uses a

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.