Position of alert/confirm/notification

Hi, @Aaron. I think the only way to change the position of the alert is to style it using Roles and CSS.

You can create a role (I called mine lower-alert) and pass onto your alert’s arguments, like this:

alert(content="hello", role='lower-alert')

Then, add this bit of code to your theme.css file:

.anvil-role-lower-alert {
  position: absolute;
  bottom: 10px; 
  left: 0;
  right: 0;
}

Hope that helps!

5 Likes