We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24067
    • 16 Posts
    While the name of the parent industry is now shown in the combobox it is also submitted on safe. Causing the value to be erases (string vs int).

            ,fields: [{
                xtype: 'hidden'
                ,name: 'id'
            },{
                xtype: 'Industries-combo'
                ,store: industriesStoreObj
                ,fieldLabel: _('industries.parent')
                ,name: 'parent'
                ,width: 200
            },{
    
      • 24067
      • 16 Posts
      While the code change fixed the label in the combobox displayed on the update dialog the name is now submitted instead of the value.

              ,fields: [{
                  xtype: 'hidden'
                  ,name: 'id'
              },{
                  xtype: 'Industries-combo'
                  ,store: industriesStoreObj
                  ,fieldLabel: _('industries.parent')
                  ,name: 'parent'
                  ,width: 200
              },{
      
        • 24067
        • 16 Posts
        Fixed the combobox issue by adding the config option hiddenName to the store and valueField to the field configuration

                  displayField: 'name'
                 ,valueField: 'id'
                 ,mode: 'local'
        +        ,hiddenName: 'parent'
                 ,store: industriesStoreObj
                 ,editable: false
                 ,emptyText: 'Select industry...'
        @@ -157,6 +158,7 @@
                 },{
                     xtype: 'Industries-combo'
                     ,store: industriesStoreObj
        +            ,valueField: 'id'
                     ,fieldLabel: _('industries.parent')
                     ,name: 'parent'
                     ,width: 200
        
          • 24067
          • 16 Posts
          Bruno17, I have tried to contact you in the past to get some help getting your code to work but failed.
          I see a lot of posts from you pushing your stuff but not helping the problem at hand.