hi there,
i have a form page with formit, and it works fine and the field validation and validation error are correctly handled and displayed.
this page content is really complex, so i wanted to iprove it using chunks and snippets, but i'm having an issue i can't solve by myself.
the idea is something like this:
[[!FormIt?
&customValidators=`bla bla bla` other bla]]
[[!mysnippet? ¶m=`[[!+fi.error.myfield]]`]]
inside mysnippet i want to read the placeholder [[!+fi.error.myfield]] and, if it's a an empty string, do something, if it's not do something else.
apparently it's never an empty string, because if i debug i find that, if the placeholder contains an error message and therefore the string is empty, it works fine, if the placeholder is empty mysnippet sees this string in the variable:[[!+fi.error.myfield]]
given that formit is called before mysnippet i would have expected it to work fine.
i tried with 2 simple snippets and it works great, so i can't understand what i'm doing wrong.
thanks for your help
p.s. modx 2.2.6 and formit 2.2.0