PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Move the position of validation error message to bottom. Achor no good -> Iframe

  1. openfire9
    Member

    I have a long form displayed in an iframe, so the following solution will not work in this case:

    http://www.gravityhelp.com/documentation/page/Gform_confirmation_anchor

    Is there another way to get the error message to the bottom of the form where users will see it?

    Thanks.

    Posted 12 years ago on Tuesday January 31, 2012 | Permalink
  2. You would be able to do it with jQuery using something like this.. http://api.jquery.com/after/ - Basically moving the confirmation message container after the form container.

    Posted 12 years ago on Tuesday January 31, 2012 | Permalink
  3. openfire9
    Member

    Thanks Kevin.

    I would prefer not to use jquery on this page, so I was wondering if there was a way to edit the php file to move that section to the bottom, perhaps just below or just above the submit button instead?

    Thanks again.

    Posted 12 years ago on Friday February 3, 2012 | Permalink
  4. openfire9
    Member

    Would it be possible to instead use an image as the confirmation message and use absolute positioning to get it to the bottom?

    Posted 12 years ago on Monday February 13, 2012 | Permalink
  5. openfire9
    Member

    OK, I see that Jquery is already being used, so Jquery is fine then... (i just didn't want to add additional load time with Jquery, but it's moot now)

    So using the Jquery ".after" that you pointed out, I guess I would use something like this:

    <script>$(".gform_footer").after(".validation_error");</script>

    Does that look about right?

    Also, I have no idea where to put that line of code... Could you point me in the right direction?

    Thanks

    Posted 12 years ago on Monday February 13, 2012 | Permalink
  6. openfire9
    Member

    The wife is breathing down my neck to get the site live... lol!

    Can someone kindly point out where the jquery line goes? It would be greatly appreciated!

    Anyone?

    Thanks!

    Posted 12 years ago on Monday February 13, 2012 | Permalink
  7. Does your theme have a place to put scripts in? If not, you can create a js file, drop the code in that and then reference it in your theme's head.

    Posted 12 years ago on Tuesday February 14, 2012 | Permalink
  8. openfire9
    Member

    Thanks Rob! I will try that!

    Posted 12 years ago on Tuesday February 14, 2012 | Permalink