JavaScript
Run Code
Open in Fiddle
Ext.application({ name: 'Fiddle', launch: function() { data = [{ Message: 'The Company field is required' }, { Message: 'Occupation required' }, { Message: 'Password Does Not Match Confirmation' }]; var errorTpl = new Ext.XTemplate('<tpl for=".">', '<ul class="thumb-wrap">', '<li><b>{Message}</b></li>', '</ul>', '</tpl>'); var htmlError = errorTpl.apply(data); Ext.Msg.alert('Problems Found (please fix)', htmlError); } });