Setting default value in pop-up for Lookup field with "Allow new entries" option

Setting default value in pop-up for Lookup field with "Allow new entries" option

I have 2 tables, Sample and Test, with a bi-directional relation. In the Sample table, I have a multi-select lookup field with the "Allow new entries" option enabled. When the user clicks the Add New function, a pop-up box appears with the Test form. The form has no value in the Sample field on the Test form. I want this field to default to the sample from which the new entry was initiated so the user can't accidentally select a different sample. How do I make this work?