[eluser]fran-quero[/eluser]
It's an alert based on the value introduced by the user, so I can't use if(), because, I search the id in the database once the input field for id loses focus. And this way, although the controller response is empty, $ajax->overlay() shows an empty modal.