• Resolved Lance Hillier

    (@lancehillier)


    Hi all, would any one know how to remove the, ‘This field is required’ error message, but leave the red border? Just tried the following code from wpforms on a fresh install and the default theme and nothing happens… Alternatively Anyone know how to include the field Labels into the error message? I have the labels inside the box and the error messages are making the labels disappear which makes it hard for users to know what is missing.


    /* Disable form validation error messages */

    /* @link https://wpforms.com/developers/how-to-add-custom-css-styles-for-wpforms/ */

    .wpforms-field-required ~ em, input.wpforms-error ~ em {

      display: none!important;

    }

    .wpforms-field-required ~ em, input.wpforms-error ~ em {

      display: none!important;

    }

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @lancehillier,

    Thanks for reaching out!

    To remove the validation message, you can use the code snippet in this documentation: How to Disable Validation Error Messages.

    In case it helps, here’s our tutorial with the most common ways to add custom code like this.

    For the most beginner-friendly option in that tutorial, I’d recommend using the WPCode plugin.

    Regarding a way to include the field label into the error message, we don’t have a feature for this currently. I’ve made a note of the feature request, and we’ll keep it on our radar to be reviewed as we plan out our roadmap for the future.

    Thanks!

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @lancehillier,

    We haven’t heard back from you in a few days, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove the Required Field error?’ is closed to new replies.