Hi all,

I've write a listener function for my ajax request in beforerequest, this function will prepare an object which has the information from all fields in my formpanel. Now i want to delete the default params of my input fields, but can't find it, can anybody help me?

Here my function:

Code:
beforerequest: function(connection, options){
    		//check if request is save request
    		if (typeof(options.scope.options.params)!=="undefined"){
    			if (typeof(options.scope.options.params.action)!=="undefined" && options.scope.options.params.action=="save"){
    				var paramsobj = {};
    				Ext.each(options.form.elements, function(element,index,allelements){
    					var params={};
    					elcmp = Ext.getCmp(element.id);
						params['name']=element.name;
						params['value']=element.value;
						params['type']=elcmp.consoleName;
						params['allowblank']= elcmp.allowBlank;
						params['inputtype']= element.type;
						paramsobj[element.id]=params;
    				},options);
    				var data = Ext.encode(paramsobj);
    				options.params = {"data":data};
    			}
    		}
    		
    	},scope:this,
Thanks

Mike