We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28120
    • 380 Posts
    Please an you point me to the documentation on how to change the default error message when a field fails validation.

    e.g. default = This field is required.

    How to change it to "First Name is required"

    thanks
      • 20215
      • 144 Posts
      Hi sparkyhd

      if you want to customize the message you have to go in lexicon Management and change formit.filed_required value or use the filter notempty in this way "[[!+fi.error.name:notempty=`Custom Message`]]"

        ----------------------------------
        canale irc Italiano #modx server: tophost.azzurra.org