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.2.0-rc1 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.2.0

    • Added customValidators property to FormIt snippet to restrict custom validators to only specified validators to prevent brute force snippet loading. All custom validators’ names must now be passed into this property.
    • Allow placeholders of fields in all email properties
    • Added fiValidator::addError for easier error loading for custom validators
    • Added German translation

    New in 1.1.7

    • Added bcc and cc properties for 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
      • 30319
      • 406 Posts
      I think I was the first person to discover and download the new version!! smiley smiley

      Thank you for adding cc and bcc, I tested them...they work very well, as does &emailFromName.

      Thank you also for documenting how to reference bcc and cc, and for adding in the placeholders part.

      Thank you, Tom
        • 30319
        • 406 Posts
        Is it possible to use our own custom client-side recaptcha html code??

        Using the placeholder, formit.recaptcha_html, I keep getting both the recaptcha images (e.g. new challenge, audio challenge, help, AND the equivalent text values, making a rather ugly display.

        Please see the attached screenshot, it shows what happens...it is only a thumbnail below, please click the thumbnail, it is a full-sized picture.

        So I am thinking find and use custom code...though I would REALLY rather use recaptcha’s ’clean’ theme.

        Any help is appreciated, thank you...

        Another question: is it possible to somehow use the Ajax recaptcha api?? This makes it possible to request a new captcha without refreshing the whole page and possibly losing one’s form responses.

        Would I need a new custom hook to use custom recaptcha code?? I’m not really a programmer but I could experiment...

        I’d really rather know how to fix the display issue though...Recaptcha’s ’clean’ theme is really quite nice. smiley

        Thank you, Tom
          • 7976
          • 36 Posts
          I tried to search before posting but I couldn’t find this requests:

          1) I would like to have an error class I could add on a label or input field.

          For example:
          <label for="email"[[+fi.email.classes]]>Email:</label>
          <input type="text" name="email:email:required" id="email" value="[[+fi.email]]"[[+fi.email.classes]]>


          2) I would like to have a parameter for the main form template. Not for parsing it but simply for including it.

          For example:
          [[!FormIt?
            &hooks=`email,antispam`
            &formTpl=`contactForm`
            &emailTpl=`reportForm`
            &emailTo=`[email protected]`  
            &redirectTo=`10`  
          ]]


          instead of
          [[!FormIt?
            &hooks=`email,antispam`
            &emailTpl=`reportForm`
            &emailTo=`[email protected]`  
            &redirectTo=`10`  
          ]][[$contactForm]]


          Thank you for your work sofar!
          ~Paul
            Jack of all Trades and Proud Honda Zoomer owner. Also available on twitter.