We have a form with about 6 select boxes. Scenario is: on selection of the optio

Certified Senior Developer
We have a form with about 6 select boxes. Scenario is: on selection of the options in the select box, a value needs to be captured and stored. For eg: in select box 1, if i select option 2 then value 2 to be stored and so on. When form is submitted, i neeed to have the sum of all the values in an integer variable and also an array with the selected values. Eg my final integer value is 28 (which is added up) and array is {2,4,6,8,2,6} somethin like this.
I dont wanna have n number of hidden fields for n number of select boxes. If i have only 1 filed and if i want to keep dding the values to the same then on which event i can do this?? cos, onChange event will keep adding everytime i change the value. onoutfocus is not there.
onSubmit if I try to do this, then again if there are many select boxes, the scripting will b huge.

If someone can suggest the best approach would be helpful.
One more thing, in the output tab of data if I try to add the value to ...

OriginalPostID-60267

OriginalPostID-60267

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data