AtulDawkhare
25 Sep 2012, 10:38 PM
Hi,
I am using ExtJS 4.1.
My requirement is , I have a form with htmlEditor. Now I want to do validation, when user don't' give any inputs then I want to show invalid icon, same like as show in image.
38931
my code for htmlEditor is
{
xtype : 'htmleditor',
name : 'desc',
id:'htmlEditorID',
cls:'htmlEditorID',
fieldLabel : 'Description',
height : 200,
width : '90%',
anchor : '90% 50%',
allowBlank: false,
cls:'forumTitle',
value:postDetailsJson[0].description
},
Even I put allowBlank as false, still it is not working.
I want to show the Red Icon [i.e. shown in image] in front of the fieldLable.. if user don't type anything in htmlEditor.
Please suggest the possible way to achieve this.
I am using ExtJS 4.1.
My requirement is , I have a form with htmlEditor. Now I want to do validation, when user don't' give any inputs then I want to show invalid icon, same like as show in image.
38931
my code for htmlEditor is
{
xtype : 'htmleditor',
name : 'desc',
id:'htmlEditorID',
cls:'htmlEditorID',
fieldLabel : 'Description',
height : 200,
width : '90%',
anchor : '90% 50%',
allowBlank: false,
cls:'forumTitle',
value:postDetailsJson[0].description
},
Even I put allowBlank as false, still it is not working.
I want to show the Red Icon [i.e. shown in image] in front of the fieldLable.. if user don't type anything in htmlEditor.
Please suggest the possible way to achieve this.