How I can put a value in a richselect with ID and Value?

Hello,

how I can put in a richselect component a value with ‘setValue’ with ID and value?

I need to see the value (text), but I need to get (with getValue) the ID?

ES:
$$(‘richselect1’).setValue({ id: 1, value: “firstValue” });

var elementID = $$(‘richselect1’).getValue();

Thanks,
Best

Are you need to add the new option and select it’s value ?

$$('richSelect1').getPopup().getList().add({ id: 1, value: "firstValue" });
$$('richSelect1').setValue(1);

Thanks!