Array of values in expression rule to be inserted in dropdown choice labels.

Certified Senior Developer

I have an expression rule which is containing a data with multiple values, I am trying to insert that data to dropdown choice labels and choice values but I am not able to do that.Can anyone help me to configure that?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Harshit Bumb (Appyzie)

    Hi Harshit,

    thanks for your reply, getting this error

    code:

    a!localVariables(
    local!values:rule!MSAJ_getAllBrands(),
    local!saveValue,
    {
    a!sectionLayout(
    contents: {
    a!dropdownField(
    label: "Brand",
    labelPosition: "ABOVE",
    placeholder: "--- Select a Value ---",
    choiceLabels:append(local!values),
    choiceValues: append(local!values),
    value:local!saveValue,
    saveInto: local!saveValue,
    searchDisplay: "AUTO",
    validations: {}
    )
    }
    )
    })

Children