Allowing limited number values displaying in Drop down?

Certified Senior Developer

Hello,

 

 

 How Can I display the limited number of values in the Dropdown Component?

 

 

Thanks in Advance

  Discussion posts and replies are publicly visible

Parents
  • Hi Sandeep,
    You can do this in multiple ways.

    1. Adding a filter condition if the values are from DB.
    2. Using remove function to remove the indexes not required. for ex:
      load(
      local!data: {1,2,3,4,5,6,7,8,9,10},
      local!indexToRemove: {1,5},
      local!drop,
      a!dropdownField(
      label: "Test",
      choiceLabels: remove(local!data,local!indexToRemove),
      choiceValues: remove(local!data,local!indexToRemove),
      placeholderLabel: "Please Select",
      value: local!drop,
      saveInto: local!drop
      )
      )
Reply
  • Hi Sandeep,
    You can do this in multiple ways.

    1. Adding a filter condition if the values are from DB.
    2. Using remove function to remove the indexes not required. for ex:
      load(
      local!data: {1,2,3,4,5,6,7,8,9,10},
      local!indexToRemove: {1,5},
      local!drop,
      a!dropdownField(
      label: "Test",
      choiceLabels: remove(local!data,local!indexToRemove),
      choiceValues: remove(local!data,local!indexToRemove),
      placeholderLabel: "Please Select",
      value: local!drop,
      saveInto: local!drop
      )
      )
Children