Support » Plugin: Gravity Forms Auto Placeholders » [Plugin: Gravity Forms Auto Placeholders] Bug breaks the placeholder

  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.




    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Gravity Forms Auto Placeholders] Bug breaks the placeholder’ is closed to new replies.