PDA

View Full Version : displayfield is being submitted too



spor
5 Nov 2010, 7:46 AM
According to the API documentation, DisplayField is a
display-only text field which is not validated and not submitted.How come when I have xtype: 'displayfield' and use form.submit(form.getFieldValues())), all the displayfield values are returned too?

plalx
5 Nov 2010, 11:12 PM
It won't get validated and submited, but it's still a field. getFieldValues will return the value of all fields the form has.

Condor
5 Nov 2010, 11:37 PM
A form submits the values from getValues() and not from getFieldValues(). getValues() won't contain displayfield values.