View Full Version : Adding field in XTemplate to form

9 Oct 2012, 7:27 AM
I have a fairly complex form case that requires me to use an XTemplate to which I add form fields (I'm using the excellent CTemplate extension). Problem is, when I try using form.getValues() where "form" is my Ext.form.Panel object, the field from my XTemplate are not returned. Is there any way to register those fields with the form somehow so that they can be returned?

15 Oct 2012, 5:39 AM
This is because the fields are not items of the form. In order to use getValues, you must use add or insert methods to add the fields to the form which will not be able to use the CTemplate extension.