Link to DocField

Hello, I want to ask if it is possible to add field type Link with DocField as options? I’ve tried and it works but the selection shown in input field is only the hash. Can I make it searchable (also filterable based on its parent DocType) ? Thank you.

You may have to use Custom JS to achieve this and use get_query to set the values for your field

get_query: function(){ return {query: "dotted path to your custom method in python"}}