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.

Edit Error Output

  1. I'm hacking away on this custom form for the home page: http://ckdis.co/Sgellk

    I'm wondering how to go about editing the output if there is an error. For example, if you click "Call Me!" without filling anything in, you'll see the error messages. I'd like to edit the title, the error message, and line up the fields.

    Posted 12 years ago on Saturday March 24, 2012 | Permalink
  2. You can change the error message by using this:

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

    How comfortable are you with CSS? You will need to target the validation class via selectors, some samples of that can be found here:

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

    Posted 12 years ago on Saturday March 24, 2012 | Permalink
  3. Sweet! You guys make it too easy! :)

    Just one more thing... I can't seem to figure out how to reduce the padding around the top labels (Name, Phone) in the error output.

    Posted 12 years ago on Saturday March 24, 2012 | Permalink
  4. Awesome, try dropping this in:

    [css]
    li.gfield.gfield_error.gfield_contains_required label.gfield_label, #gform_wrapper_3 li.gfield.gfield_error.gfield_contains_required div.ginput_container {
    margin: 0;
    }
    #gform_wrapper_3 li.gfield.gfield_error.gfield_contains_required label.gfield_label, #gform_wrapper_3 li.gfield.gfield_error.gfield_contains_required div.ginput_container {
    margin: 0;
    }
    Posted 12 years ago on Sunday March 25, 2012 | Permalink
  5. Perfect! Thanks so much!

    Posted 12 years ago on Sunday March 25, 2012 | Permalink
  6. No problem, glad to help!

    Posted 12 years ago on Monday March 26, 2012 | Permalink