
Anonymous Community User asked a question.
Add Specific Values If One Category Equals Certain Value And Another Category Another Value" request received
Hello, At the moment I have a category selection set up between two options, and depending on the option that get's selected it will add a specific value, as per the following: var cat = @Type Of Request cat == "International" ? 75.00 : cat == "National/Local" ? 25.00 : "" This is working perfectly, but I now have another category (seperate from above, so 2 different category options on the template), which I would like to also include in the calculation in the following way. If the first category like above is one of 2 options, as per above, it needs to add the value, BUT THEN it also needs to look at another category list and only if certain ones out of the list is selected, it needs to actually count the values for the first category selection? Example: 1st Category: 1st Option - International; 2nd Option - National IF International is selected, value should be 75.00; IF National is selected, value should be 25.00 2nd Category: 1st Option - Good, 2nd Option - OK, 3rd Option - Bad, 4th Option - Duplicate IF either of GOOD or OK gets selected it NEEDS TO count above values (from national & international); BUT IF BAD or DUPLICATE gets selected it shouldn't count the values