Gravity Forms Auto Placeholders
Bug breaks the placeholder (3 posts)

  1. cmccrone
    Posted 3 years ago #

    If you have a multiple page form and you go back a page within the form (maybe to changed something on page 1) the titles come back and page holders are gone until you refresh the page (but then you lose everything you wrote/selected).

    This also happens when there is an error. Lets say someone missed a field and pushes next or send. The form shows the red error message but again, the titles come back and placeholders are gone.

    Still love the plugin, maybe a fix soon?


  2. Philip Ingram
    Posted 2 years ago #

    This also affects when the form is submitted with validation errors when using ajax, since the function is only called when the document is loaded rather than every time the form is submitted, included multi-step forms.

    The fix is to wrap the script found in 'gravity-forms-auto-placeholders.php' with 'gform_post_render'

    Just after:
    $(document).bind('gform_post_render', function(){

    then just before:
    // Ends allowance of jQuery to $ shortcut
    add another:

    ps - also to plugin author, change <script> tag to <script type="text/javascript"> so that it doesn't break w3c validation on pages with forms.

  3. Sith Lord Goz
    Posted 2 years ago #


    Nice fix! Also note to plugin author: the second .each() loop in the Modernizr block also needs the gforms wrapper targetting, or it will target ALL input/textareas!

    if(!Modernizr.input.placeholder){$(".<?php echo $gfap_class; ?> input, .<?php echo $gfap_class; ?> textarea").each

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gravity Forms Auto Placeholders
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.