We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16905
    • 46 Posts
    I think this should be simple, I just can not figure it out.

    I have an eForm. And when someone misses a required field, they see the error message. The problem is that the error message is showing up in the same <p> color as the entire rest of the page, so it is hard to see.

    For eForms, how do I change this color to say #cc0000??

    Thanks,
    L
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The error message should be in an HTML element container with a classname or ID that you can use for styling. For example, if you used the standard [+validationmessage+] placeholder for this, it will use this (from the language file)
      <div class=\"errors\"><strong>Some errors were detected in your form:</strong><br />[+ef_wrapper+]</div>";

      So for your CSS file you'll have the div with the .errors classname to work with.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org