Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How can i sort the list in drop down field.

_ramya
Level 2
Level 2

Hello,

I have created a drop down list to display the countries. i added the values in palettes->object->field. now i have added extra one value using script in the exit event of the field.

ddDropdown.addItem("india")

this value adds in dropdown at last position. but i need this to be sorted in alphabetical order using script.

please can somebody help me out of this.

~ramya.

2 Replies
_ramya
Level 2
Level 2

thanks yar, its working fine. but duplicate values are displaying whenever the dropdown list is selected. need to remove the duplicate values.