Possible to move the form error message?


#1

Is it possible to move around the error messages on your form? Right now, our error message covers up our “Submit” button and I’d like to move it somewhere else on the landing page.


#2

Hi David, unfortunately I can give you the answer you want. At this time their is no way provided by the editor position the error messages. They are positioned automatically to one side of the form or other depending on the position of the form and the width of the browser window.

We will look into alternative methods for placing the error messages but this may take some time before we are able to provide a better solution.

Justin


#3

If you guys could make this more customizable that would be great. I had to write some css styles for mine because it was showing up on the bottom of the page. Still doesn’t look right though. I don’t really have any custom styles either so I’m not sure what is causing it.


#4

any updates on this as of Oct 7?


#5

It would be great if we could customize this, as our validation error message blocks the form fields so you cannot amend the form to fix it. You can move the browser or refresh the page but this is not intuitive.


#6

It’s been 5 years now. Has it become possible to position this error message yet?


#7

Hi Radu, 
This is something that’s still in our backlog, as fixing this would require a rebuild of forms in it’s entirety to complete this. However, one of our awesome CS coaches came up with a temporary solution you might find useful. Try the form on this page to view the form error behaviour. The form error message should disappear after 1 second, and if it reappears, you can click it to have it disappear. Give it a try and let me know if you’d like the javascript code: 
http://unbouncepages.com/error-message-disappears/


#8

Yes, this seems to be a lot like what we would need to solve our problem. I would really appreciate to have the javascript code for this implementation of form error messages.


#9

Hi! I would like to know the javascript code too! Thanks :) 


#10

Here is the code!


#11

Thank you Stephanie! Not sure how this one slipped by my radar. 


#12

To be clear, do you need to add this to each individual page and change the #lp-pom reference for each page it is on?


#13

redirect of old variants


#14

Hi Justin, could you give me the code?


#15

Hey Glenn! Thought I’d jump in here. :slight_smile:

Here’s the Javascript you’re looking for:

<script>
  $(function(){
    $(".lp-form-errors").click(function(){
      $(".lp-form-errors").fadeOut()
    }); 
    $('.lp-pom-form .lp-pom-button').click(function(){
      setTimeout(function(){$(".lp-form-errors").fadeOut()},9000)
    })
  });
</script>

And the Stylesheet that goes along with it:

<style>
.lp-form-errors element.style{

    right: 100px !important;
}
</style>

Let me know how that works!

Cheers


#16

Is this the java that makes the error dialogue fade? Does it go in Head?