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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:39:46+00:00 2026-06-01T12:39:46+00:00

I have a form with two selectfields. I would like that when something is

  • 0

I have a form with two selectfields. I would like that when something is selected from the first select box, to be able to add some option in the second one.

Here’s the code for the second one :

xtype: 'selectfield',
       id: 'category_id',
       name: 'category_select',
       label: 'Categoria',
       options: [{
                    text: 'test',
                    value: '1'
                 },{
                    text: 'test2',
                    value: '2'
                }]

I’ve tried with

Ext.getCmp('category_id').add("test3");

but it doesn’t work. Can you please help me?
Thanks!

  • 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-01T12:39:48+00:00Added an answer on June 1, 2026 at 12:39 pm
    Ext.getCmp('category_id').getStore().loadData(data, true);
    

    Data is array of records (objects). Second parameter is append. When is true data will be appended to store. In other case store data will be replaced with new one. By default is false.

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

Sidebar

Related Questions

I have a simple PHP script with a form that has two select fields,
I have a form with two select boxes that are used to move values
I have a form with two text boxes. What I would like is when
I have a form with two text boxes, one select drop down and one
I am using MVC3, EF Model first. I have a form with two DropDownList
I have a form that has two buttons on it, one yes, one no,
I have two form classes inheriting from a common base. One of the forms
I need to have a form execute two scripts so that means two different
I have a form that has two field (time_selects), the idea is that the
I have a form in which the user can either select from a pre-existing

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.