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.

Error msgs not contained in my widget size

  1. jmacmullen
    Member

    http://trueffor.com

    Go to the page and in the left hand corner I have my newsletter registration widget. Just click the submit button so you get an error. Is there a way to turn off the error highlighting since it's not fitting in the container and looks bad? Is there a way to just state "submission error" try again or something?

    Posted 12 years ago on Friday December 30, 2011 | Permalink
  2. Hey there, tried clicking on that URL in a few browsers but it's not resolving. Is that the correct link?

    Posted 12 years ago on Friday December 30, 2011 | Permalink
  3. jmacmullen
    Member

    sorry about that http://trueffort.com

    Posted 12 years ago on Friday December 30, 2011 | Permalink
  4. Your problem is a set height with an overflow on the div that contains your form. When the validation errors are displayed, the form is taller vertically so it gets cropped by the overflow on the parent container.

    [css]
    .builder-module-4 .widget {
        height: 320px;
        width: 286px;
    }

    You would need to override the default validation styles for that form (base the CSS inheritance off the form ID so it doesn't change all of your forms) to remove the padding, borders or whatever you need that forces the extra height. This snippet will get you started.. it appears that you'll have some more work to do because of other theme styles, but it should point you in the right direction.

    [css]
    
    body #gform_wrapper_2.gform_wrapper div.validation_error {
    	display: none
    }
    body #gform_wrapper_2.gform_wrapper li.gfield.gfield_error.gfield_contains_required {
        margin-bottom: 0 !important;
        margin-top:  0 !important;
    }
    body #gform_wrapper_2.gform_wrapper li.gfield.gfield_error,
    body #gform_wrapper_2.gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning {
        background-color: none !important;
        border: none !important;
        margin-bottom:  0 !important;
        padding:  0 !important
    }

    You could always make the parent container height taller by default to allow for the possibility of validation errors.

    Or, even another idea is to make the parent overflow property auto so if the form has the errors, you can still scroll through the form and submit it without the button being obfuscated.

    [css]
    .builder-module-4 .widget {
        overflow-y: auto
    }

    screenshot: http://bit.ly/uMZXOQ

    Posted 12 years ago on Friday December 30, 2011 | Permalink