View Full Version : displayfield is being submitted too

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?

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.

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