load( local!dropdownOneLabels: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, local!dropdownTwoLabels: {"One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten"}, local!dropdownOneValues: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, local!dropdownTwoValues: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, local!tmpDropdownOneLabels, local!tmpDropdownTwoLabels, local!tmpDropdownOneValues, local!tmpDropdownTwoValues, local!dropdownOne, local!dropdownTwo, with( { a!multipleDropdownField( label: "Dropdown One", labelPosition: "ABOVE", placeholder: "-- Select values in Dropdown One --", choiceLabels: if(and(rule!APN_isEmpty(local!dropdownTwo), rule!APN_isEmpty(local!tmpDropdownOneLabels)), local!dropdownOneLabels, local!tmpDropdownOneLabels ), choiceValues: if(and(rule!APN_isEmpty(local!dropdownTwo), rule!APN_isEmpty(local!tmpDropdownOneValues)), local!dropdownOneValues, local!tmpDropdownOneValues ), value: local!dropdownOne, saveInto: { local!dropdownOne, a!save( local!dropdownTwo, {} ), a!save( local!tmpDropdownTwoLabels, index( local!dropdowntwoLabels, local!dropdownOne, {} ) ), a!save( local!tmpDropdownTwoValues, index( local!dropdownTwoValues, local!dropdownOne, {} ) ) } ), a!multipleDropdownField( label: "Dropdown Two", labelPosition: "ABOVE", placeholder: "-- Select values in Dropdown Two --", choiceLabels: if(and(rule!APN_isEmpty(local!dropdownOne), rule!APN_isEmpty(local!tmpDropdownTwoLabels)), local!dropdownTwoLabels, local!tmpDropdownTwoLabels ), choiceValues: if(and(rule!APN_isEmpty(local!dropdownOne), rule!APN_isEmpty(local!tmpDropdownTwoValues)), local!dropdownTwoValues, local!tmpDropdownTwoValues ), value: local!dropdownTwo, saveInto: { local!dropdownTwo, a!save( local!dropdownOne, {} ), a!save( local!tmpDropdownOneLabels, index( local!dropdownOneLabels, local!dropdownTwo, {} ) ), a!save( local!tmpDropdownOneValues, index( local!dropdownOneValues, local!dropdownTwo, {} ) ) } ) } ) )