title: ExtJS 4: Image in form field?
body: <p>I have a form with fields like below:</p>
  
  <pre><code>items: [{
      fieldLabel: 'Name',
      name: 'name'
  },{
      fieldLabel: 'Description',
      name: 'description'
  },{
      xtype: 'field',
      fieldLabel: 'Icon',
      name: 'icon',
      fieldSubTpl: new Ext.XTemplate('&lt;img src="images/icons/{value}"/&gt;')
  }]
  </code></pre>
  
  <p>I am trying to display an image in the form based on a value in the loaded record. So, if <code>icon</code> equals <code>'test.png'</code>, then <code>images/icons/test.png</code> should be loaded. Any clues on the best way to do this?</p>