Filter on sidebar modal field

Hi all,

Is there any trigger we can use to filter the link field on sidebar modal. For my case, i have added some filter on ‘assign to’ field in Lead doctype and i would like to add filter on the same field as well in the modal but could not find how to trigger the field.

Is there a ‘refresh’ event?

I found the above with this search

frappe@ubuntu:~$ find . -name ‘*.js’ | xargs grep ‘assign_to’

FWIW this is the dialog box box