Appending items in Lookup Field which display value is different than its value

Appending items in Lookup Field which display value is different than its value

Hi,

In one form, we have a lookup field looking for ID but, displaying the description. Then, when we try to programmatically append a new item (we have also inserted the new item in the corresponding form, programmatically too), the only way is setting the new ID but then it displays the ID, not the description. It looks horrible! Is there a right way for appending the item correctly and displaying the description (the ui.append() function has only one parameter, for the value).

Thank you very much,

Bernat