Example of a basic FormPanel:
var form = new Ext.form.FormPanel({ title: 'New Product', labelWidth: 75, border:false, defaultType: 'textfield', items: [{ fieldLabel: 'Product SKU', name: 'sku', allowBlank:false },{ fieldLabel: 'Price', name: 'price' }, new Ext.form.DateField({ fieldLabel: 'Expires', name: 'expires' }) ], buttons: [{ text: 'Save' },{ text: 'Cancel' }] });