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?

https://github.com/frappe/frappe/blob/develop/frappe/public/js/frappe/form/form_sidebar.js#L54

I found the above with this search

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

FWIW this is the dialog box box

https://github.com/frappe/frappe/blob/develop/frappe/public/js/frappe/form/footer/assign_to.js#L130