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.

Validation error - loading form in widget

  1. Site is http://lahmannlaw.com/ (WP 3.4.2 GF 1.6.10) and form is in right sidebar being called from a widget. OK so I read everything I could find about enqueue and I tried adding this line to my existing functions.php:
    gravity_form_enqueue_scripts(3, true);
    I also tried to put it in the head section using a hook before the closing </head> tag:

    <?php
    gravity_form_enqueue_scripts(3, true);
    ?>

    Complete validation error page at http://lahmannlaw.com/images/validator.pdf
    Thanks - Regards, Mal

    Posted 11 years ago on Thursday December 6, 2012 | Permalink
  2. I will bring this to the attention of the development team.

    Posted 11 years ago on Thursday December 6, 2012 | Permalink
  3. For validation error #1, the inclusion of a stylesheet in the middle of the page, the work around there is to turn off the CSS output (in the settings page "Output CSS" should be unchecked.) This validation error does not affect the functionality of the page.

    For the other errors, you can try wrapping your JavaScript in CDATA blocks by using the gform_cdata_open and gform_cdata_close filters.

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

    That will wrap all Gravity Forms JavaScript in CDATA tags and allow you to validate your page as XHTML transitional.

    Neither of these existing validation errors will affect the function of the page, but I understand the concern with validating the site, especially in the case of client work.

    Posted 11 years ago on Friday December 7, 2012 | Permalink
  4. It's all good now. Thanks. I have no idea what those filters do but I dropped them into my functions.php file after turning off the CSS Output and I'm getting a perfect validation.

    OK Best Regards - Mal

    This document was successfully checked as XHTML 1.0 Transitional!

    Posted 11 years ago on Saturday December 8, 2012 | Permalink