We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32046
    • 75 Posts
    Sure its probably covered somewhere, but cannot find so here goes:

    I want my eForm report alter information depending on the POST var. For example, I may need the placeholder (POST var) [+number+] to be altered under some circumstance. I’ve tried to hook into an eForm event (eFormOnValidate) and use $modx->setPlaceholder to alter the value but the report does not reflect the change. Is this the incorrect approach or is there a better way?
      • 32046
      • 75 Posts
      Found the answer at http://wiki.modxcms.com/index.php/Add_stuff_to_the_eForm_Report_mailing
      Apparently you can pass the reference &$fields to the snippet and alter the placeholder values that way.