# Data in the combobox is reapeting. How to solve this?

**URL:** <https://forum.kirupa.com/t/data-in-the-combobox-is-reapeting-how-to-solve-this/202030>\
**Category:** Uncategorized\
**Created:** [September 27, 2006, 4:53am UTC](https://forum.kirupa.com/t/data-in-the-combobox-is-reapeting-how-to-solve-this/202030 "2006-09-27T04:53:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trestian](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@trestian](https://forum.kirupa.com/u/trestian)\
**Post date:** [September 27, 2006, 4:53am UTC](https://forum.kirupa.com/t/data-in-the-combobox-is-reapeting-how-to-solve-this/202030/1 "2006-09-27T04:53:06Z")

</div>

Good day!

Any oidy help me so that the data inside in the combo box will not reapiting?  
Scenario:

- I have two frames in the first frame there is a combobox with three label.(one,two,three)

- If i click next button it will go to the 2 frame then if click the previous button it will go o the 1st frame but the problem the data inside in the combo box will be reapeted (one,two,three,one,two,three)

- how to make that if you go back to the 1st frame the data in the combo box will not repeated?

My Code is in here:

cmb\_type.addItem({data:1, label:“Bar Shape”});  
cmb\_type.addItem({data:2, label:“L Shape”});  
cmb\_type.addItem({data:3, label:“Island”});

thanks your help will greatly appreciated.
