Connecting two Objects

I have a list of Coupon Codes and Prizes they are tied to.

For example:

Electric Scooter

I created two Objects (Coupon Codes and Prizes)

How can I make is so when a user types in a coupon code on the front-end form, I display the prize information associated to that code?

Hello Tod,

Add search view. Initially show no records.

When the user types Coupon code and hits search then shows that record.

Mark that field mandatory(required) in search.

Sunny Singla


Thanks for replying. I would like to search for a Coupon Code and then display a form so the user has to type in their shipping information and show the prize associated with the code