How can I configure an Alert element to be shown after clicking a button ONLY if some criteria is met?
In example:
-
I click on a button A, which only sends an email if the input “email” is registered.
-
If the email is registered, an email is sent and an Alert message is shown.
-
If the email is not registered, the email is not sent and the Alert message is not shown.
I was thinking about solving this issue by replacing the Alert element by a text; however, the Alert message is not only shown but it fades away after some time, while text elements do not fade.