I have one form in which I have one combo box (Combo) and another text box(Text) which is enabled on certain values selected of combo box.I need to submit the form and validate manadatory field on Text if it is enabled. I have defined allowBlank : false for both Combo and the Text. and also I have added addForm.getForm().isValid() before submitting the form.
My problem is that when Text is enabled the validation works perfectly and red line is shown if Text is empty but when Text is disabled then also red line is shown though value of addForm.getForm().isValid() is true.
Can someone help me out how to get rid of that redline (sign of mandatory field).