Splitting the total sum based on dropdown options selected
- June 3, 2024
- 3 replies
- 2015 views
I've created a form that adds the total amount of trip and vacation days. The dropdown options are (Departure (Trip), Return (Trip), Trip (Half Day), Trip, Vacation (Half Day), and Vacation). The value to each of these options is 1. So whenever you select a option from the dropdown list, there is a
"Total days" column that collects this info and counts each option as 1. At the bottom of the grid, I have a "Total Trip Days" and "Total Vacation Days" row. Based on the option selected from the dropdown list, I would like for all "Trip" options selected to be added to the sum of the "Total Trip Days" row and for all the "Vacation" options selected to be added to the total sum of the "Total Vacation Days" row. Right now, each option selected is added to the total sum of "Total Trip Days." Is there a custom script I can insert to perform this task? (Please see the attached form as an example)