Setting the Value of a Checkbox

I’ve been trying to set the numeric value of several checkboxes, and have that value populate in the database after a submit button is pressed. Then have the sum of those values populate in a text field. Your thoughts team?

You could put a “hidden” repeating group somewhere, that contains the selected numbers. Then use the sum of those values in the text box.

So “plus item” “minus item” when the relevant check box is ticked.