Community Forums 

Main Content

Choice array with limited combos

    Apr 16 2015 21:52:46



    Join date : 2013-02-11      Posts : 15

    We have a cookie shop and are preparing to do ecommerce. What I want to do is say, for example, I offer a mixed dozen cookies for $xx. I want to show an array of 20 cookies to choose from with radio buttons, check box, or boxes and have the code so they can only choose 12.

    Can you use a box so thay can say pick 2 of these, 3 of these, 4 of these, and 3 of these or any combination they choose but code will limit them to only max of 12 units?

    Apr 17 2015 12:57:02



    Join date : 2008-09-18      Posts : 3243

    Yes, you can use javascript to count the total order number and give a warning to the buyer if the number exceeds 12.


    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.