Results 1 to 3 of 3

Thread: How to build sub-form

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Location
    Tehran
    Posts
    46

    Default How to build sub-form

    Setting the name of some form fields similar to `subform[foo]`, Ext could not fill them again with the json response of the server. Also, QueryManger could not parse such name in the queries. How should I handle such fields in ExtJS forms?

    Here is an example of a non-extjs form using arrays:


    Code:
    <input type="text" name="firstname">
    <input type="text" name="lastname">
    <input type="text" name="email">
    <input type="text" name="address">
    
    
    <input type="text" name="tree[tree1][fruit]">
    <input type="text" name="tree[tree1][height]">
    
    
    <input type="text" name="tree[tree2][fruit]">
    <input type="text" name="tree[tree2][height]">
    
    
    <input type="text" name="tree[tree3][fruit]">
    <input type="text" name="tree[tree3][height]">

  2. #2
    Sencha Premium Member Dejan Beciric's Avatar
    Join Date
    Feb 2014
    Location
    Belgrade, Serbia
    Posts
    49

    Default

    Can you explain or give a printscreen of what exactly you want to implement ?

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Location
    Tehran
    Posts
    46

    Default

    My question is not about any GUI or appearance. I need to fill fields that their name attribute contains [].

Posting Permissions

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