JavaScript - Want to calculate sum of certain fields, but only if dropdown next to each field has a particular value showing. Graphic included.
Here's the English version of what I'm trying (and failing) to do:
The plain English version of the calculation I’m trying to make for each of the “Total” fields.
Allow value from “c1_w_1”, IF field “camp_1” = “Dougy”
+
Allow value from “c1_w_2”, IF field “camp_2” = “Dougy”
+
Allow value from “c1_w_3”, IF field “camp_3” = “Dougy”
and so on...
It feels as though it needs to be a doc sript and not a field properties script. Below is a graphic to illustrate the functionality I'm trying to recreate in this PDF form.

Any feedback would be greatly appreciated!!!
