}
return Roo.urlDecode(fs);
},
+ /**
+ * Returns the fields in this form as an object with key/value pairs.
+ * This differs from getValues as it calls getValue on each child item, rather than using dom data.
+ * @return {Object}
+ */
+ getFieldValues : function(){
+ if (this.childForms) {
+ // copy values from the child forms
+ Roo.each(this.childForms, function (f) {
+ this.setValues(f.getValues());
+ }, this);
+ }
+
+ var ret = [];
+ this.items.each(function(f){
+ if (!f.getName()) {
+ continue;
+ }
+ ret[f.getName()] = f.getValue();
+ });
+
+ return ret;
+ },
/**
* Clears all invalid messages in this form.