PDA

View Full Version : change textfield fieldLabel



hevole
20 Jul 2009, 7:03 AM
is there ways to set the fieldLable of one textField equal to the value of a combobox after its value is selected? I have a little piece of code that looks like

var combo = <an Ext comobbox>;
var text =<an Ext textField>;
combo.on('select', function(){
<something like text.fieldLable = combo.getValue(); >
})


your help is appreciated.

steffenk
20 Jul 2009, 7:09 AM
you mean text.setValue(combo.getValue()); ?

use the docs to find the right properties and methods of form fields:
http://extjs.com/deploy/dev/docs/