hide the error box after the given condition is met

Sanafelix1323
Tera Contributor

I have a requirement where I am using g_form.showErrorBox method and I want this box to automatically disappear from the filed once the given condition has been met. Is there any ways to implement it.

 

For example If I am setting a minimum limit of 25 characters for  description and  if the user fills below 25 characters then this error box appear but if user fills 25 character then this error box should disappear from the filed without changing to the next variable.

but currently its  disappearing after I move my cursor from the description filed to other filed.

1 REPLY 1

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

If you have a trigger then you can use the below to clear All the error on the form

gs.clearMessages()

 

-Anurag