I have added two text fields in a form panel:

```
    {
        xtype: 'formpanel'
        ,flex: 1
        ,id: 'remove'
        ,defaults: {
            xtype: 'textfield'
            ,readOnly: true
        }
        ,items: [{
            bind: {
                value: '{loadDetails.firstname}'
            }
        },{
            bind: {
                value: '{loadDetails.lastname}'
            }
        }

```

I have written the following function for removing the text fields:

```
onRemove: function(){
    Ext.getCmp('remove').setValue("");
}

```

On executing this the console displays that setValue is not a function.