We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Um... no, I just did it that way. The select didn’t have the eform="..." at all, and I wasn’t sure where to put it so I just started sticking in places to see what would work. I’ll do a quick check to see if it still works if it’s not required. Ok, it works fine if it’s 0 (not required).

    By the way, you might be interested to know that I’ve added a small hack to make it possible to recover the form data when returning from another page, when the data is loaded into the SESSION. I put this just before the return formMerge(...) for building the form:
    	# get SESSION data
    		if(isset($_SESSION['value']['critical_value'])) {
    			foreach($_SESSION['value'] as $name => $value) {
    				$fields[$name] = $value;
    			}
    		}

    This way, after checking for a critical SESSION value, it loads up the SESSION values in place of POST values. Now if the user has navigated to a different page, he can return either with the browser’s back button or a specific "back to form" link, and his form will be populated.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 25663 MODX Staff
      • 12,272 Posts
      Susan, assuming that goes in the eform.inc.php file, I’ll commit this to our SVN repository along with the rest of my collected fixes.

      Also, any other tweaks that would make it work better (you’ve made or that are needed that is)?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I don’t think that this should be part of the core package. I just found it useful under certain circumstances; if the data are not in the SESSION it won’t do any good, not to mention that the value that is tested would be very specific to each application.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I just noticed that eForm isn’t in the repository!
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 32963
            • 1,732 Posts
            I’ll add version 2.0 to the Repository.

            Quote from: sottwell at Aug 11, 2006, 01:07 AM

            I just noticed that eForm isn’t in the repository!
              xWisdom
              www.xwisdomhtml.com
              The fear of the Lord is the beginning of wisdom:
              MODx Co-Founder - Create and do more with less.
              • 29655
              • 16 Posts
              I think I’ll wait for version 2.0 before I try figure this snippet out! Looking forward to it smiley
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                I use the eFormParser class files with the latest eForm snippet (as taken from the links on the first post) and it’s a beauty. Since it uses custom tag attributes it won’t validate on the W3C validation page, but that’s no problem for me.

                I haven’t actually implemented the event interrupts yet, but they will come in very handy.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 30223
                  • 1,010 Posts
                  Quote from: sottwell at Aug 15, 2006, 03:06 AM

                  Since it uses custom tag attributes it won’t validate on the W3C validation page, but that’s no problem for me.

                  The custom attribute should not impact on W3C validation. The eform attribute is stripped from the tags before the form is added to the output. or have I missed something?
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    No, you didn’t, I was just clicking the "reply" button before putting my mind in gear. Sorry about that!
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 31654
                      • 238 Posts
                      Any luck with getting the version 2 into the downloads section?
                      I really want to start using it but I’m nervous of all the links and hacks on the first post of this thread!

                      Does the form offer any SMAP protection?... I have two websites that use email forms and SPAMbots have started using them to send SPAM.
                      What would you recommend I do to stop them?
                      Does the eForm come with CAPTCHA?
                        Web Development, Web Hosting & Search Engine Marketing by:

                        Vitalized | UK
                        w. www.vitalized.co.uk

                        Website Design | Search Engine Marketing (SEM) | UK MODx web hosting, secure, fast & 100% MODx compatible

                        Vitalized | Australia
                        w. www.vitalized-australia.com.au

                        Website Design | Search Engine Marketing (SEM) | Australian MODx web hosting, secure, fast & 100% MODx compatible

                      This discussion is closed to further replies. Keep calm and carry on.