Hi Friends,
Please look at the screenshot. There is a two rows. In that two rows should validate when the two rows are equal. So what i am planning in the "Department" section. When i used "Corporate" in the dropdown then it should not come in the second row. Please share your thoughts.
Discussion posts and replies are publicly visible
a!localVariables( local!savedValueIndex, local!firstDropdownSavedValue, local!secondDropdownSavedValue, local!choiceLabels1: { "Corporate", "Engineer", }, local!choiceValues1: { 1, 2 }, local!choiceLabels2: { "Corporate", "Engineer", }, local!choiceValues2: { 1, 2}, { a!dropdownField( label: "Dropdown", labelPosition: "ABOVE", placeholder: "--- Select a Value ---", choiceLabels: local!choiceLabels1, choiceValues: local!choiceValues1, value: local!firstDropdownSavedValue, saveInto: { a!save(local!savedValueIndex, index(local!choiceValues1, save!value, null)), a!save(local!firstDropdownSavedValue, save!value) }, searchDisplay: "AUTO", validations: {} ), a!dropdownField( label: "Dropdown", labelPosition: "ABOVE", placeholder: "--- Select a Value ---", choiceLabels: if( a!isNullOrEmpty(local!savedValueIndex), local!choiceLabels2, remove(local!choiceLabels2, local!savedValueIndex) ), choiceValues: if( a!isNullOrEmpty(local!savedValueIndex), local!choiceValues2, remove(local!choiceValues2, local!savedValueIndex) ), saveInto: { a!save(local!secondDropdownSavedValue, save!value) }, searchDisplay: "AUTO", validations: {}, value: local!secondDropdownSavedValue ) } )
Please refer the code to figure out the logic to conditionally manage the choice labels and values.