i have a form with one item as combo with a validator to display text even if validator function
returns true as i still want to submit the form. Making use of markInvalid.


width: 450,
items: [{
xtype: 'combo',
id: 'validatorTest',
msgTarget: 'qtip',
mode: 'local',
validator: this.displayErrorText


...


},


displayErrorText: function(value)
{

if ( value = 'false')
{
this.markInvalid('text 1'); // here the combo field border color changes to red and qtip text changes too
this.preventMark = 'false';
return false;
}
//warning block
if ( value = 'warning') /// when I add this, i see issue.
{
this.markInvalid('text 2'); // here the combo field border color changes to red and qtip text changes too
this.preventMark = 'false';
return true;
}


if ( value = 'success')
{
this.clearinvalid(); // this just clears the broder color, but for some reason it not clearing the qtip text, when i hover the mouse over
// combo field its always set to text 2. basically if warning is executed, qtip text always remain set
// to text 2.
return true;
}


}


First select warning, the combo field border color changes to red and qtip text changes to 'text 2'
then if success selected, border clears, but the ' text 2' qtip remains
if false selected, still the ' text 2' qtip remains, does not change to 'text 1'

If i change msgTarget: 'qtip', to msgTarget: 'side', then the text is not displayed at all on second markInvalid. For qtip, it remains set to first text.


Any help is appreciated.


Thanks in advance.