# Connecting two Objects

**URL:** <https://forums.knack.com/t/connecting-two-objects/12578>\
**Category:** Get Answers\
**Created:** [May 25, 2022, 2:00pm UTC](https://forums.knack.com/t/connecting-two-objects/12578 "2022-05-25T14:00:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tod](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tod](https://forums.knack.com/u/Tod)\
**Post date:** [May 25, 2022, 2:00pm UTC](https://forums.knack.com/t/connecting-two-objects/12578/1 "2022-05-25T14:00:48Z")

</div>

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

For example:  
**Codes**  
OXfSwTlC

**Prize**  
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?

---

<div class="post-metadata">

**Author:** ![Tod](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tod](https://forums.knack.com/u/Tod)\
**Post date:** [May 25, 2022, 2:01pm UTC](https://forums.knack.com/t/connecting-two-objects/12578/2 "2022-05-25T14:01:18Z")

</div>

![Screen Shot 2022-05-25 at 9.56.28 AM](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/f/f04d3a9af9b65ac265348a39e62abcea144e5954.png)

---

<div class="post-metadata">

**Author:** ![Sunny\_Singla](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sunny_singla/32/1007_2.png) [@Sunny\_Singla](https://forums.knack.com/u/Sunny_Singla)\
**Post date:** [May 25, 2022, 2:03pm UTC](https://forums.knack.com/t/connecting-two-objects/12578/3 "2022-05-25T14:03:47Z")

</div>

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.

Regards,  
Sunny Singla

---

<div class="post-metadata">

**Author:** ![Tod](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tod](https://forums.knack.com/u/Tod)\
**Post date:** [May 25, 2022, 2:39pm UTC](https://forums.knack.com/t/connecting-two-objects/12578/4 "2022-05-25T14:39:14Z")

</div>

Sunny,

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
