extjs - Ext Form Model load two fields with same data -
i have ext model form. need load single data value password field both password , confirm password field. possible load records in ext? yes possible. when record loaded in form, data obtained calling getdata() on record. therefore, can tweak model provide copy of password in field this: ext.define('user', { extend: 'ext.data.model', fields: [ 'id', 'name', 'password' ], getdata: function() { var data = this.callparent(arguments); data['confirm_password'] = data['password']; return data; } }); full example: https://fiddle.sencha.com/#fiddle/pgr alternative approach if not want change model, password field mirror value confirm password field whenever value set through setvalue : var form = ext.create('ext.form.panel', { defaulttype: 'textfield', items: [ { fieldlabel: 'name', na...