How to make that fields are not hidden when a "successful" state appears in the form

I need that when the notification of the successful sending of a message does not hide the form fields (the whole form). That this alert appears at the top of the page. To form fields are not lost. And that’s all… Is that possible?