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.

Hidden inputs all have br on each line creating large empty space

  1. Hi,
    My form is rendering with html break at the end of each hidden input.

    <input type='hidden' class='gform_hidden' name='is_submit_1' value='1' /><br />
     <input type='hidden' class='gform_hidden' name='gform_submit' value='1' /><br />

    How can this be stopped? the 7 hidden fields create a large empty space.
    thanks in advance
    Larissa

    Form is here: http://customdevice.com.au/wp/book-a-class/

    Posted 11 years ago on Friday August 10, 2012 | Permalink
  2. My guess is that this is a Themeforest theme and it includes a [raw] shortcode. That shortcode modifies the processing of all shortcodes. The effect of that is that the Gravity Forms shortcode output is processed again by WordPress, and that is where the extra < p > and < br > tags come from. You can sometimes work around this problem by wrapping the Gravity Forms shortcode in the raw shortcode, like this:

    [raw][gravityform id="1" name="Book a class" description="false"][/raw]

    That will work around the problem with this theme. However, it would be better to remove the [raw] shortcode functionality completely, if you don't use it. You can read more about the problem here:

    http://www.gravityhelp.com/forums/topic/product-price-and-quantity-layout#post-36350
    http://www.gravityhelp.com/forums/topic/zip-code-field-misalignment
    http://www.gravityhelp.com/forums/tags/raw

    Posted 11 years ago on Friday August 10, 2012 | Permalink
  3. Thanks - that worked.
    rgds,
    Larissa

    Posted 11 years ago on Monday August 13, 2012 | Permalink
  4. Thank you for the update.

    Posted 11 years ago on Monday August 13, 2012 | Permalink

This topic has been resolved and has been closed to new replies.