How can I add a document with document reference field?

I have two collection(A and B).Collection A has a field which type is document reference(reference to collection B).

Now,I want to bulid a page to add document to collection a.There is a radiobutton in this page.And radiobutton value is from collection B.

How can I do this?

4 replies