making Error message disappear when clicking in other fields

Hi Everyone ,
I have the basic requirement that ,

When I press a Button --> if condition(API value) is satisfied : perform a!save and other stuffs.

                                                              Not satisfied : Display error message.

After that , If I click on ANY text field(there might be many) , then error message but disappear.

Eventually , if I click the button then only error message reappears.

Thanks in advance.

  Discussion posts and replies are publicly visible