Help with Scripting

Help with Scripting

Hello, I am new to this type of workflow so I hope someone can help. I have a form that has 5 categories each with drop-down menus. Cat 1 has 3 variables, Cat 2 has 3 variables, Cat 3 has 26 variables, Cat 4 has 4 variables, and Cat 5 has 2 variables. Depending on what variables are selected for all 5 categories I would like a new form to open upon clicking the Submit button. Simply stated I would need to write a script for the Submit button: If cat1=variable, cat2=variable, cat3=variable, cat4=variable, cat5=variable then open Form#1. Then I would have to figure out all the combinations to add to the script. Is this possible? Thank you in advance.