add alert above a form if some condition exists?

I need to have some kind of warning message, not a temporary notification, but a static alert displayed above a form if some condition exists. In my case, there's a form that a user can fill out, but they have to connect an external API integration before they can make those modifications. I want to display a message to the user that they won't be able to do anything until they connect the API.
Was this page helpful?