PDA

View Full Version : How dynamic change submitValue ?



PSB
20 Jun 2010, 11:40 AM
Hi.

I try this code:



xtype:"textfield",
name:r.get("field_name"),
fieldLabel:"<b>"+r.get("field_title")+"</b><font color='Red'>*</font>",
listeners:{
change:function(){
if(this.isDirty()) this.submitValue=true;
else this.submitValue=false;
}
},
submitValue:false,
width:r.get("field_width"),
allowBlank:r.get("field_allowBlank")
but form always submit all values...:-? How dynamic change submitValue ?

breckster
28 Nov 2016, 9:42 PM
this.submitValue= true or Ext.apply(this, {submitValue:true}) sets the config but doesn't update the dom. form.getForm().getValues() parses the dom looking for <input> tags.

Any suggestions?