Skip to main content
preeti0001
November 2, 2022
Question

How to make multiple dropdown all values already selected ?

  • November 2, 2022
  • 3 replies
  • 0 views

As i am new to appian i have requirement .. 

.All values of multiple dropdown should be pre - selected default.

3 replies

stefanhelzle0001
Brainy
November 2, 2022

Then you need to assign all the possible values to the value parameter.

And in case you want to set default values to rule inputs, just type "default" into the search field in the documentation. In the popup you will find some suggestions.

amans0009
November 3, 2022

pre-populate the variable(local/ri) with values

a!localVariables(
  local!choices:{a!map(id:1,value:"first"),
  a!map(id:2,value:"second"),
  a!map(id:3,value:"third")
  },
  /*pre-populate the variable with values*/
  local!selectedValue: local!choices.id,
  {
  a!multipleDropdownField(
    label: "Multiple Dropdown",
    labelPosition: "ABOVE",
    choiceLabels:local!choices.value,
    choiceValues: local!choices.id,
    value: local!selectedValue,
    saveInto: {local!selectedValue},
    searchDisplay: "AUTO",
    validations: {}
  )
}
)