Pre-populating a field from another DocType

I have added a field to the Purchase Order DocType. I’ve called it “quotation_number”.

I’d like to have it auto-populated from the Supplier Quotation when a Purchase Order is created from the Supplier Quotation. How can I set the default value of this custom field to be pulled from the Supplier Quotation? Is this something I have to set in the Supplier Quotation DocType, or in the Purchase Order DocType?

Thanks for any advice.
(This is for V14 on the Frappe hosted servers).

Please check the videos.

I’ll put my solution here, in text, so it’s searchable.

The fieldnames between the two DocTypes must match if you want the data in the field to be automatically populated.

You msut create a custom field in the source document and the destination document with the same name. If the names match when you first create them, it’ll be good. You can then edit the description if needed, but they must match when you first create them.