I've done this numerous times, so I guess this is my friday the 13th present. I can't see what I'm doing wrong
Code:
//controller code var myhiddenfield = this.getMyForm().down('#myhiddenfield'); if(myhiddenfield){ console.log(this.currentRecord.get('FIELD')); //<---good value. myhiddenfield.setValue(this.currentRecord.get('FIELD'); console.log(myhiddenfield) //<---no value.. } //form snippet buidlItems: function(){ return [{ xtype: 'hidden', name: myhidenfield, itemId: 'myhiddenfield }] }
Comment