We are about to start building a process that has dozens of checkboxes across multiple fields, and we need to route to certain users depending on which boxes are checked.
For example:
Checkbox A: checked - Route to user X
Checkbox B: unchecked -
Checkbox C: checked - Route to users X, Y
Checkbox D: checked: Route to user Z
In this example, we'd need to route to users X, Y, and Z in a predefined order. There are only about 4 users, but 70 checkboxes.
My initial thought is to use onChange listeners on the checkbox fields, have JavaScript look for which boxes are checked, and fill in some hidden fields that we can look into in the process. For example, when Checkbox A is checked, the hidden field 'routeToUserX' will be marked as 'Yes' then we can check that condition in the process.
That approach seems difficult to maintain, though, and I'm not sure if there's an easier way to do it. Has anyone solved a similar problem in a better way?