We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16885
    • 255 Posts
    While I’ve been working on a somewhat more complex form, I’ve come across the point where I’ve got a somewhat big sign up form for a dentist, where multiple people have to be able to sign up at once (a family). That’s no problem of course, but the (email) output generated by eForm does get fairly ugly, especially when only one or two people sign up, still the three of four empty name/birthday/sex forms will be mailed.

    So far I haven’t quite found a way to add some extra intelligence into the form here, and I’m a bit scared away by the many files eForm uses, making it harder to hack in extra functionality. So my question would be, is this possible, already done, or how should I approach this?

    Thanks in advance wink
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Make your mail template very basic, then use an external function to add as many fields to it as there are POST values at the eFormOnBeforeMailSent event.

      There’s a wiki article on how to do that here.
        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
        • 4310
        • 2,310 Posts
        Thanks Susan, that’s a handy link to bookmark.
          • 16885
          • 255 Posts
          Thanks indeed, I’ll take a look at that.