Autofill an Add Lookup Link

Autofill an Add Lookup Link

Is there a way to autofill an add lookup field before it is submitted?

For example, I have a Task form and on that task there is a project lookup field and beneath that a component lookup field.  The component lookup field is a dynamic picklist based on the component form that associates the components only that correspond with the project selected.  All of that works fine.

My question is, when I click on the Add Component if I need to add one not in the list, it takes me to the popup of the Component form where I have to choose from a lookup the project and then type in the component that goes with that project.  Is there a way that when I click on the Add Component to the lookup field, it autofills the project with the one you are currently working on rather than having to find it on the dropdown?

So say you are inputting a task for Project A and the Components for that project are Component 1, Component 2, and I need to add Component 3.  I click on Add Component, the popup appears, can it auto-fill the Project field with the one on the Task form?  Or do I have to manually put in the project again?