Form field filled based on previous page

I was looking for the exact same thing and found it in this post. I hope it helps: