We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2611
    • 394 Posts
    Allright I have the following code in a chunk:

    [[!+fi.error.data_field]] [[!+fi.error.data_field:notempty=`Test message`]]


    This:
    [[!+fi.error.data_field]]

    Shows me the error (This field is required).

    But this:
    [[!+fi.error.data_field:notempty=`Test message`]]


    Doesn’t show a message...how come?
    Even stranger, is that it does work on about 10 placeholders right before
    this one...

    [edit]
    Oh nice, it gets getting stranger:

    [[!+fi.error.data_field]] [[!+fi.error.data_field:notempty=`Test message`]]

    Above code works, but only shows "Test message"

    [[!+fi.error.data_field:notempty=`Test message`]]

    Doesn’t work, does not show message
    [/edit]

    (MODx 2.0.8)
      Follow me on twitter: @b03tz
      Follow SCHERP Ontwikkeling on twitter: @scherpontwikkel
      CodeMaster
      • 23510
      • 168 Posts
      The page you have the chunk on...what happens if you set that page to not-cacheable?
        • 2611
        • 394 Posts
        Doesn’t help unfortunately
          Follow me on twitter: @b03tz
          Follow SCHERP Ontwikkeling on twitter: @scherpontwikkel
          CodeMaster
          • 1343 ☆ A M B ☆
          • 2,213 Posts
          Could you explain more about what you are trying to accomplish? It looks like you are trying to change the FormIt error messages, which you can and likely should do differently.
            Patrick | Server Wrangler
            About Me: Website | Tweets |  MODX Hosting