Combobox data like html with value and camption

Is it possible to have a combobox with a value and a data that is displayed ?, as is done with HTML style

Show because I have a combobox that is populated from the DB and I need to display a field but then capture the value of the id field.

Hey Esteban, not sure I understand exactly what you’re trying to achieve. Sounds like maybe setItemCaption would help?

ComboBox cb = new ComboBox();
cb.addItem(Object itemId)
cb.setItemCaption(itemId, "caption");