xerrano
29 Oct 2007, 9:53 PM
I try to pass the emailto variable value to the - To value TextField -
But it does not work, even the form stops showing on the screen. When I take the value line out all the form shows fine. ANY IDEA HOW TO USE A VARIABLE AS A "VALUE" IN A FORM.TEXTFIELD? :((
ds.on("load", function(){
var firstRec = ds.getAt(0);
emailto = firstRec.get("peopleemail");
alert(emailto);
});
// I test the alert and it shows fine.
new Ext.form.TextField({
fieldLabel: 'To',
name: 'formTo',
vtype:'email',
hidden: 'true',
value: emailto, >:)
width:175,
allowBlank:true
}),
THANKS AGAIN!!
Felipe Serrano
But it does not work, even the form stops showing on the screen. When I take the value line out all the form shows fine. ANY IDEA HOW TO USE A VARIABLE AS A "VALUE" IN A FORM.TEXTFIELD? :((
ds.on("load", function(){
var firstRec = ds.getAt(0);
emailto = firstRec.get("peopleemail");
alert(emailto);
});
// I test the alert and it shows fine.
new Ext.form.TextField({
fieldLabel: 'To',
name: 'formTo',
vtype:'email',
hidden: 'true',
value: emailto, >:)
width:175,
allowBlank:true
}),
THANKS AGAIN!!
Felipe Serrano