Direct to Url with preselected lookup field based on fields from last form
I have a form where my customers can "add a student". They are then directed to a form where they "set up payment".
On the "set up payment" form, there is a look-up field to find the correct student. Rather than having my customers look through all student names, I would like the redirect to automatically select the correct student (based on the name and dob entered in the previous form called "add a student") and lock to this option when the customer is initially redirected to this form.
Is this possible?
I have created the below script on the "Add a Student" when Created or Edited on Successful form submission:
I am not sure if I am on the correct track or if I need to do something different.