We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16444
    • 6 Posts
    Hi folks,
    in my code there was a html-data-attribute for each option-tag like this:
    <option value="123" data-types="type1,type2"> Option #1</option>

    but after eForm had processed the form it came out like this:
    <option value="123" types="type1,type2"> Option #1</option>


    I found the line responsible for this is 904 in eform.class.php. In the function "attr2array" the regex doesn't allow a dash in an attribute name. So I change the line from
    $expr = "#([a-z0-9_]*?)=(([\"'])[^\\3]*?\\3)#si";

    to
    $expr = "#([a-z0-9_-]*?)=(([\"'])[^\\3]*?\\3)#si";

    an everything worked fine.

    Hopefully this is helpful for someone... smiley
    It's eForm 1.4.4.7 on Evolution 1.0.6 by the way.
    • @kulmjens,

      I just ran into this myself and knew it must be related to my recent eForm upgrade...

      Thanks a million for posting the solution cool It worked great.
        Mike Reid - www.pixelchutes.com
        MODx Ambassador / Contributor
        [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
        ________________________________
        Where every pixel matters.