How to make multiple dropdown all values already selected ?

Certified Associate Developer

As i am new to appian i have requirement .. 

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

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    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: {}
      )
    }
    )

Reply
  • 0
    Certified Associate Developer

    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: {}
      )
    }
    )

Children
No Data