What I meant is when you view that record after submission you will see value and not ID for Reference Record.
I have filed a defect for this #61422.Thanks for brining this to our notice.
However you could still go ahead and use that API because when form is submitted value gets stored instead of ID.
I think I've a similar problem..., programmatically setting the Reference Record from the UI.
My Object C has the Reference Record field. My Objects A and B are both related to C and are included as Selected Objects in the Reference Record list.
I find I can use rbf_setFieldValue to set the Reference Record to an A object record but not a B object record. Co-incidentally the UI dropdown defaults to Object A possibly because it sorts as the first in the list.
Is there a solution / api that will allow me to set the Id of any object record in the Reference Record list?