We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13765
    • 6 Posts
    I’m currently using modx evolution’s eform to gather and submit registration data. However, I’ve ran into a stumbling block. I need the form to CC a certain person based on a checkbox in the form. If the checkbox has NOT been checked, it does NOT email this person. But, if the checkbox IS checked it will email them. Any ideas???
      • 16278
      • 928 Posts
      Sounds like a job for the &eFormOnBeforeMailSent event. See documentation included with the snippet (eform/docs/eform.htm). You could create a function to test the checkbox field and add a &cc field if it’s set. Or maybe set the &cc field in the snippet call, and clear it if the checkbox isn’t set, to make updating it simpler.
      laugh KP