We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for FormIt 1.5.3-pl by splittingred.

    Brief Description:

    Automatically validate, parse and email forms. Redirect to thank you pages. Add your own hooks as Snippets to handle forms dynamically. Validate with custom Snippets. All is possible in FormIt, the new form processing Snippet for MODx Revolution 2.0.
    New in 1.5.3

    • [li][#40] Add ability to display all error messages in bulk at top, added validationErrorBulkTpl for templating each one
    • [#52] Add a general validation error message property, validationErrorMessage, that shows when validation fails
    • [#53] Fix bug that prevented recaptcha options from working
    • Add a generic validation error placeholder in FormIt to allow for general messages
    • [/li]
    • [#50] Trim each hook specification in hooks calls
    • [#49] Ensure reCaptcha service instance is unique for each FormIt instance
    • [#47] Ensure email validator checks for empty string
    • [#42] Can now include field names in error strings via `field` placeholder
    • [#39] Fix issue with FormItIsChecked/Selected to prevent output from occurring if not checked
    • [#37] Fix allowTags validator to work, and work with parameters encapsulated by ^

    New in 1.5.2

    • Fixed security vulnerability
    • Added math hook, allowing anti-spam math field measure
    • Added more debugging info to email hook


    See the Official Documentation here:
    http://rtfm.modx.com/display/ADDON/FormIt
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      I just found something interesting to throw the error to $hook->addError(’error_message’, $return);

      You should use ’$return !== true’ or ’$return === false’ to do the comparison.

      ’!=’ or ’==’ doesn’t catch this.
        Rico
        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
        MODx is great, but knowing how to use it well makes it perfect!

        www.virtudraft.com

        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

        Maintainter/contributor of Babel

        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.