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.4.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.4.0

    • [li]Introduced &validate parameter for more secure validation parameters to prevent POST injection that could bypass validators
    • Added FormItIsChecked and FormItIsSelected custom output filters for easier checkbox/radio/select handling of selected values
    • Added &placeholderPrefix for FormIt snippet, defaults to `fi.`
    • [/li]

    New in 1.3.0

    • Added FormItRetriever snippet to get data from a FormIt submission for thank you pages
    • Added extra API methods for custom hooks for easier data grabbing
    • Added FormItAutoResponder snippet to use as a custom hook for auto-responses
    • Added &successMessage and &successMessagePlaceholder properties for easier success message handling
    • Fixed ordering for &emailFrom property


    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
      • 28743
      • 10 Posts
      I’m trying to send an attachment from a form. The attachment is working, but is coming through with the temp filename rather than the original. Any ideas how to have the script use the original filename?

      Cheers!

      Chris
        • 7804
        • 80 Posts
        Question: how do I validate one part of a form’s input against another?

        I have a form with a drop down list, and depending on the user’s selection, this may enable/show other form input areas which would then be required.

        So for instance, as a very simple example, I have 2 items in my drop down: "black" and "blue". If the user selects "black", he can submit the form. If the user selects "blue", then another input field is unhidden by a javascript on the page with the label "What shade of blue?" This unhidden field then becomes a required part of the form. Basically I need to validate the unhidden conditional field to ensure it’s populated, but I don’t see a way in the documentation to access the value of a different form item to validate the current form item.
          • 25357
          • 92 Posts
          Has anyone gotten the FormItRetriever working OK? Can’t seem to make it fly.

          [[!FormItRetriever]]
          <p>Thank you [[+fi.email]] for suggesting <strong>[[+fi.city]]</strong>.</p>

          The values are coming up OK in the autoresponder and reports ok. Using Revo 2.0.3-pl and FormIt 1.4.0, verified snippet.formitretriever.php is at (root)/core/components/formit/elements/snippets

          Edited/Solved: <ahem>

          For those of you having trouble with this, navigate back to the formit documentation page itself:

          store If true, will store the data in the cache for retrieval using the FormItRetriever snippet.

          :-)

          FormItRetriever is an awesome and much needed addition to FormIt.