Click to See Complete Forum and Search --> : order form checkbox values


kathyplack
06-27-2003, 07:23 PM
You are on the right track! Thanks! Only one problem. I don't know that it matters if you check and uncheck the states, but it does if you check more than one box on any product. As soon as you hit the second checkbox, it takes the total back to $0. I am patient if you can find the time later! I have put up another page at https://ssl.adgrafix.com/users/hhofg/orders.html with the changes so you can see what is happening. That way I don't have to worry about people using the site getting involved in any of the problems we will have along the way. I much appreciate the help and the time involved for you!

Exuro
06-27-2003, 08:48 PM
I fixed that bug I think. I left out a fairly improtant else statement as I was quickly coding that up this morning before I had to leave somewhere. Anyway, I have the new document attached.

kathyplack
06-28-2003, 12:52 AM
I really appreciate your taking the time to help me. So far it all seems to work great! It does keep the same total if you fill out the order and then change states, but I don't think too many people will do that. It's easy enough for them to refresh if they do.

As I tell my kids: YOU'RE THE BEST!

Exuro
06-28-2003, 01:15 AM
Wow, I don't know why I didn't think of this earlier... Instead of doing what I said about adding up at the end, you can just clear all the checkboxes if they decide to change their state.
Just change this line:
<SELECT NAME="State">

To This:
<SELECT NAME="State" onChange="InitForm()">

Or, I attached the file again if you just want to download that... Anyway, I hope that helped!

kathyplack
06-28-2003, 01:31 AM
PURRFECT!!!!!! I never expected such great help. Thanks again for your time.