We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5529
    • 70 Posts
    When I put a checkbox in my form, eForm only seems to be sending me the last selection and not all of them? I searched the WIKI, documentation, & forum but didn’t find anything on this topic.

    Can someone give me a head’s up on the situation? How can I collect them all and send them over?

    *** my code excerpt ******
    <input type="checkbox" name="whatServicesIWant" value="Pest_Control" eform="Return Format::1">
    Pest Control

    <input type="checkbox" name="whatServicesIWant" value="Termite_Inspection">
    Termite Inspection

    <input type="checkbox" name="whatServicesIWant" value="Mosquito_Control">
    Mosquito Control

    <input type="checkbox" name="whatServicesIWant" value="Lawn_and_Shrub_Service">
    Lawn & Shrub Service
    **** end code exceprt ****


    PS eForm is super awesome so far!

    PPS This is the closes thing I’ve found to answer but it seems a little goofy (http://modxcms.com/forums/index.php/topic,13091.0.html)

    PPPS I found some possible solutions but they’re in a foreign language so I can’t tell if I’m just imagining it or if it’s real....
      • 30223
      • 1,010 Posts
      Change the name of the checkboxes to include brackets.
      <input type="checkbox" name="whatServicesIWant[]" .... >
        • 5529
        • 70 Posts
        Quote from: TobyL at Mar 06, 2008, 07:16 AM

        Change the name of the checkboxes to include brackets.
        <input type="checkbox" name="whatServicesIWant[]" .... >

        Sweet, dude!

        You’re the bomb! Thanks!!

        ~cml

        PS Sorry it took so long to thank you. I didn’t get the email from the forum so I didn’t know this was there.