Expand my Community achievements bar.

How can i sort the list in drop down field.

Avatar

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

Avatar

Level 2

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