Newbie: Exclude Selection - 3 Drop Down Menus
I am a newbie to JS and have searched all over but cant seem to find a solution. I want to be able to exclude a selection from a drop down if already selected previously. I have 3 dropdowns with the same 4 selections
I would like if a user selects 'Customer Service' in dropdown "Most" then it should not show as an option on "Important" or "Least" drop downs, and if the same user then selects 'Productivity' under "Important" dropdown then "Least" should only have the option of selecting 'Safety'
| Most | Important | Least |
| Select One | Select One | Select One |
| Customer Service | Customer Service | Customer Service |
| Productivity | Productivity | Productivity |
| Safety | Safety | Safety |
I am probably taking the wrong approach but this is what I have in the "Most" Custom Keystroke Script (and I have modified one in the 'Important'):
var f = this.getField("Important");
switch(event.value){
case "Select One":
f.setItems(["Select One", "Customer Service", "Productivity", "Safety"]);
break;
case "Customer Service":
f.setItems(["Select One", "Productivity", "Safety"]);
break;
case "Productivity":
f.setItems(["Select One", "Customer Service", "Safety"]);
break;
case "Safety":
f.setItems(["Select One", "Customer Service", "Productivity"]);
}Thank you in advance.
