I have a form which has multiple number fields, some of them will be added to total and some of them will be subtracted from total. i need to display a + or - right before where the textbox starts.
Hi,
Thanks for the reply i tried to change fieldSubTpl, but having trouble figuring out how to do it. the textfield is not rendering properly.
this is what i am trying to do in the fieldSubTpl
{
xtype:'textfield',
fieldLabel : 'testing',
fieldSubTpl: [ // note: {id} here is really {inputId}, but {cmpId} is available
'<span>+<input id="{id}" type="{type}" ',
'<tpl if="name">name="{name}" </tpl>',
'<tpl if="size">size="{size}" </tpl>',
'<tpl if="tabIdx">tabIndex="{tabIdx}" </tpl>',
'class="{fieldCls} {typeCls}" autocomplete="off" /></span>',
{
compiled: true,
disableFormats: true
}
],
},
Problem is the textbox is going in to next line.
screenshot:
i see the same with the below
{
xtype:'textfield',
fieldLabel : 'testing',
autoEl: {tag: 'span', html: '+'},
},