Results 1 to 3 of 3

Thread: Adding fields to a FieldSet dynamically using Sencha Touch Architect

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    California
    Posts
    29
    Vote Rating
    1
      0  

    Default Adding fields to a FieldSet dynamically using Sencha Touch Architect

    Does anyone have an example of how to add one or more fields dynamically to an existing FieldSet using Sencha Touch Architect? I've tried many different things and have searched for an example but haven't been able to figure out a way to do this.

    thanks!

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    A fieldset is a standard container and has an add method.

    You can add an instance of a textfield (or other formfield). You can also add a JS object with an xtype that indicates what type to create.

    Eg
    Code:
    this.add(myFormField);
    // or
    this.add({
       xtype: 'textfield'
       // configs...
    });
    Aaron Conran
    @aconran

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    California
    Posts
    29
    Vote Rating
    1
      0  

    Default Thanks!

    Excellent, I'll give it a try, thanks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •