Linked documents automation

How do I get all linked documents by pressing link button in the same page as shown in picture?

refer linked_with.js

1 Like

Thank You Saurabh.
Could you please tell me a link to know about following words

  1. this.form.doctype
    2.me.frm._linked_doctypes etc…

How can I use above code, shall I create custom script and paste it in the doctype?

Kindly help.