We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    Thanks for the clarification, DestinationAlpha.

    One thing I noticed in implementing an eForm recently is the need to control the output better of error messages and success messages. This would be a great candidate for another chunk.

    The other pressing nice-to-have would be the ability to have multiple To addresses with individual messages instead of using JS to build the to address list.

    In the interim, as soon as I nail down one last oddity with sending to multiple senders via javascript, I’ll put together a patch release and sample with all the stuff you’ll need to nail down a Tell-a-Friend form.
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 30223
      • 1,010 Posts
      @Raymond This is going way back to http://modxcms.com/forums/index.php/topic,2122.msg37105.html#msg37105

      I’m thinking of single like rules. Maybe something like:

      eform="Field Description:Datatype:Requirements"
      Where Requirements can be:
      0 - for NOT required (default)
      1 - for Required
      #RANGE:1-N
      #LIST:a,b,c,N
      etc...

      example

      eform="Age:number:#RANGE:18-50"

      What do you think?

      My fault for not following the forums embarrassed I’ve already implemented some @binding stuff but I have to agree with you it might not be such a good idea afterall. Your suggestion looks better. I’ll look into changing over the code I’ve done but as I’m not able to be very active at the moment should I send/post the validation functions I’ve written? (considering that an eForm update/patch is on the way) It also includes some changes to the error messages.
        • 7455
        • 2,204 Posts
        is there a posibility to make a form in eform user indentified (I do not know a good word for this but i explain my point)
        a way to let the reciever know who the webuser was that sended the message. I am planning to make a ordering form for a chinese restaurand where you can order online bu only when you are a registerd user (that way false orders ar history) would be great if we could personolise the form atleast at the receiphers site.

        Dimmy
          follow me on twitter: @dimmy01
          • 25663 MODX Staff
          • 12,272 Posts
          Only make the form visible to registered users. Then use Personalize or Membercheck to customize the output.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 32963
            • 1,732 Posts
            To get the user’s login name inside your form you need create a Snippet or TV that returns the user’s name and then store that value inside a hidden field:

            <input type="hidden" name="username" value="[[GetLoginName]]" />
              xWisdom
              www.xwisdomhtml.com
              The fear of the Lord is the beginning of wisdom:
              MODx Co-Founder - Create and do more with less.
              • 32963
              • 1,732 Posts
              Quote from: TobyL at Jul 10, 2006, 07:18 PM

              ...should I send/post the validation functions I’ve written? (considering that an eForm update/patch is on the way) It also includes some changes to the error messages.

              Sure you can smiley

              Many thanks for your help in making eform a better snippet.
                xWisdom
                www.xwisdomhtml.com
                The fear of the Lord is the beginning of wisdom:
                MODx Co-Founder - Create and do more with less.
                • 25663 MODX Staff
                • 12,272 Posts
                My patch is just a collection of all the great things the others have done along with the needed updates to phpmailer classes and a sample tell-a-friend form. Just housekeeping.
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 30223
                  • 1,010 Posts
                  Ta. Will post it tomorrow. Need to clean it up a bit first and it’s2 am here now and I’m to groggy to make any sense. smiley

                  EDIT: (rather then a new post) It’s tomorrow today!

                  Here’s a version with extended form validation in eFormParse using a form of @binding. I have incorporated everything into one file as I had to make changes to eForm() to make this work. Called the file eformx.inc.php so it could co-exist with the original. Very much beta work so don’t go off installing it at all your clients just yet. I’m posting it here in response to the discussion above, so read that first. Chances are that much will change (for the better no doubt). There’s quite a bit of comments in the file explaining things. Have fun with it. smiley
                    • 17058
                    • 80 Posts
                    got a liitle problem.
                    the whole eForm-thing works well using contactForm+contactReport.
                    But in the receiving email (send to msyself for test) the subjectline is Zero (0 -Number).No subject-value is shown.Why?
                    the subject-value is inputed by name="subject" value="[+subject+] in contactform. In contactReport a [+subject+] in the headline shows the value.
                    But in the Message itself and not in the subjectfield of the mail-program. Did i mess up the chunks?

                    thanks. le block
                      le_block is Member of FUTY | Medienagentur aus Leipzig mit Schwerpunkt Marketing, Branding, Print und Webdesign
                      • 7455
                      • 2,204 Posts
                      how did you format your snippetcall? does it has &subject=`some text or placehoder here` if not than thats the problem I think
                        follow me on twitter: @dimmy01

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