Link Field of Type 'Read Only' Does Not Display Title When Value Is Set via set_value

I have two fields that are Link to a Doctype with a title field set. I will then set the values into them. The result is that the field which is not read-only correctly displays the label as the title field, but the read-only field displays the name instead.



image

Is there any solution for this issue? When the field is read-only and the value is set, I would like it to display the title field instead.

Use the Data field instead of the Link field if you want to show the Title instead of its name (ID).

I want to display the title field in both cases.