The Message in showFieldMsg is disappearing immediately

uma17
Tera Guru
Hi All,
 
In the below code the message in showFieldMsg is disappearing immediately after appearing. If  we remove the g_form.clearValue() the message stays but the invalid value does not get cleared,
 
if (X > Y) {
        g_form.clearValue('abc'); 
        g_form.showFieldMsg('xyz', 'AAAAAAAAAAAAAAAA, 'error');
        return;
    }
 
Any idea why ?
 
Thanks,
Uma
15 REPLIES 15

No , I did not accept the solution it was by mistake.