We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30107
    • 44 Posts
    Hi,

    don’t exactly know if it’s a bug and maybe I screwed something, but I think the custom validator feature doesn’t work anymore in FormIt 2.0.0 rc2 (at least for me ;-). I followed the manual given at http://rtfm.modx.com/display/ADDON/FormIt.Validators

    When I set
    &customValidators=`snpFormItCustomValidator`
    &validate=`name:snpFormItCustomValidator`
    in FormIt call, the following error message appears in the error log:
    ERROR @ /core/components/formit/model/formit/fivalidator.class.php : 222) PHP warning: in_array() expects parameter 2 to be array, string given


    Any help is appreciated...
      • 28215
      • 4,149 Posts
      Can you file that here, and I’ll get to it Monday. Thanks!

      http://bugs.modx.com/projects/formit/issues
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com