How to add the listed items from a group of combobox menus in a calculated text field
I am currently struggling in figuring out how to create an ordering form with calculated fields that will allow me to add the valueAsString from a group of comboboxes.
For example, my form has three combo boxes for the user to select an array of different meal kits for breakfast, lunch and dinner for that day.
A separate text field allows the user to enter the total headcount for diners consuming the meal kits.
The breakfast combobox offers a selection of either pork-free, religious meal, regular-breakfast
The lunch combobox offers a selection of pork-free, religious meal, regular-lunch
The dinner combobox offers a selection of pork-free, religious meal, regular-dinner
Ona separate text fields I need to calculate the total of pork-free meals selected for breakfast, lunch and dinner; the total of religious meals selected for lunch; and the total regular meals for brekfast, lunch and dinner.
The reason why is because each mealkit provides different amount of kits per box. So if I have 50 diners ordering religious meal for breakfast and say that box contains 9 mealkits per case, I have to divide 50 diners by 9 which equals 5.55 rounded to a total of 6 boxes.
The same for lunch and dinner.
So my predicament is to get a separate field that can add automatically all the selected meals from breakfast, lunch and dinner that are the same selection on each combobox.

