Hi, thanks for your reply but it didn't work. I replaced my existing code with just CQ.Ext.Msg.alert('Error', 'Maximum characters is 500.'); because alert prompt is all i need. However, there is this blank alert prompt overlaying my custom alert prompt upon returning false. Even if i removed my code for the alert prompt, the empty alert prompt will still appear. Are there any properties i should be setting to get my error message appear on that empty prompt instead of creating a custom alert prompt? I've tried to set invalidText but it didn't solve the problem.
Thanks in advance.
[img]2015-04-14_9-45-22.jpg[/img]
xtype:richtext
validate:function()
{
var text = this.el.dom.value;
if(this.el.dom.value.length > this.maxLength)
{
CQ.Ext.Msg.alert('Error', 'Maximum characters is 500.');
return false;
}
return true;
}