We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30223
    • 1,010 Posts
    This is a bug-fix release. No new functionality was added.

    After some testing in response to this post I discovered that I unintentionally had broken something in 1.4.2. when using more then one eForm form on the same page:

    • FIXED: When using multiple forms on a page all forms are parsed and validated even when only one form is submitted.
    • FIXED: fields array values were not cleared between forms (resulting in setting validation messages in all forms when any of the forms form doesn’t validate)

    You can get 1.4.3 here.


    Update:
    Pixelchutes discovered a typo in 1.4.3. This has been corrected in the repository now but if you have already downloaded 1.4.3 have a look at this post
      • 23491 ☆ A M B ☆
      • 1,056 Posts
      Please read this post for an additional, related issue: http://modxcms.com/forums/index.php/topic,7521.msg72991.html#msg72991
        Mike Reid - www.pixelchutes.com
        MODx Ambassador / Contributor
        [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
        ________________________________
        Where every pixel matters.
        • 30223
        • 1,010 Posts
        Quote from: pixelchutes at Jan 08, 2007, 05:25 PM

        Please read this post for an additional, related issue: http://modxcms.com/forums/index.php/topic,7521.msg72991.html#msg72991

        Sorry to do this to you all... My bad for not getting it tested by others before adding this to the repository. My apologies embarrassed

        Updated the repository with fixes.
          • 23491 ☆ A M B ☆
          • 1,056 Posts
          When dealing with multiple radios, and using eform_options="...", eform_options seems to make it through to the generated HTML while eform="..." does not. Odd... eform is functioning great, even on MULTIPLE radios, e.g. named "myRadios[]"
            Mike Reid - www.pixelchutes.com
            MODx Ambassador / Contributor
            [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
            ________________________________
            Where every pixel matters.
            • 30223
            • 1,010 Posts
            Where did you get this "eform_options" from?
            eForm only works with eform="..." and only strips those from the source sao it’s no wonder you see the eform_options in the page source.

            That the radios work anyway is because eForm automatically adds validation to them based on the radio values in the form template. Same with check boxes and select boxes.
              • 23491 ☆ A M B ☆
              • 1,056 Posts
              Quote from: TobyL at Jan 08, 2007, 08:37 PM

              Where did you get this "eform_options" from?
              eForm only works with eform="..." and only strips those from the source

              LoL. From the Docs in the 1.4.3 download smiley

              Quote from: "eform.htm"

              Form field examples with validation

              1. Selectbox - set as required field (no validation required)
              <select name="mySelect" eform_options="Select Country::1" /> (datatype left blank)
              <option value="en-au">Australia</option>
              <option value="en-us">USA</option>
              </select>

              2. Textbox - required and format set to date
              <input type="text" name="dobDate" eform_options="Date of Birth:date:1:@EVAL return (strtotime($value)!==-1)?true:false;" />

              3. Multiple checkbox - required, eform_options only set once.
              <input type="checkbox" name="myColors[]" value="Red" eform_options="Colors::1" /> (datatype left blank)
              <input type="checkbox" name="myColors[]" value="Green" /> (datatype left blank)
                Mike Reid - www.pixelchutes.com
                MODx Ambassador / Contributor
                [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                ________________________________
                Where every pixel matters.
                • 30223
                • 1,010 Posts
                LOL

                I better update the docs then....
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Docs still reference some of the old/original placeholder styles: [.blah.]
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 30223
                    • 1,010 Posts
                    LoL. From the Docs in the 1.4.3 download Smiley
                    Docs still reference some of the old/original placeholder styles: [.blah.]

                    Documentation updated...
                      • 25663 MODX Staff
                      • 12,272 Posts
                      :D Thanks for doing such a great job on this code.
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me