Select Multiple Contacts on Quotation?

In my “Doctype Quotation”, I added a “Multiselect Table” linked to the “Doctype Contact” by a Child Doctype.

  1. How do I filter the Contacts linked to the quote customer in my field?

  2. How can I automatically select all the contacts linked to the quote customer?

  3. How to count the number of Contacts selected?

you will write scripts for do these functions