# Make the coupon field conditional

**URL:** https://meta.discourse.org/t/make-the-coupon-field-conditional/284324
**Category:** Feature
**Tags:** subscriptions
**Created:** [November 3, 2023, 12:50pm UTC](https://meta.discourse.org/t/make-the-coupon-field-conditional/284324 "2023-11-03T12:50:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![oopsyscoops](https://avatars.discourse-cdn.com/v4/letter/o/f14d63/32.png) [@oopsyscoops](https://meta.discourse.org/u/oopsyscoops)
#### Post date: [November 3, 2023, 12:50pm UTC](https://meta.discourse.org/t/make-the-coupon-field-conditional/284324/1 "2023-11-03T12:50:39Z")

</div>

Only show the coupon field if an actual coupon has been created.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [November 3, 2023, 3:36pm UTC](https://meta.discourse.org/t/make-the-coupon-field-conditional/284324/2 "2023-11-03T15:36:21Z")

</div>

see here…

> [@Coupon code text is not visible in subscriptions plugin](https://meta.discourse.org/t/coupon-code-text-is-not-visible-in-subscriptions-plugin/236790/3):
>
> Side remark: Would it be an idea to hide the coupon code field altogether if coupons aren’t even being used? The availability of a coupon code field is known to reduce conversion since people will wait until they get their hands on a code.
> 
> In the meanwhile do
> 
> ```plaintext
> .discourse-subscriptions-section-columns .promo-code {
> display: none;
> }
> 
> ```

---

<div class="post-metadata">

### Author: ![oopsyscoops](https://avatars.discourse-cdn.com/v4/letter/o/f14d63/32.png) [@oopsyscoops](https://meta.discourse.org/u/oopsyscoops)
#### Post date: [November 3, 2023, 4:17pm UTC](https://meta.discourse.org/t/make-the-coupon-field-conditional/284324/3 "2023-11-03T16:17:28Z")

</div>

Yes, the obvious workaround is always to hide things with CSS, but not ideal, especially when it comes to a payment form where security and validation is concerned. The coupon field is innocuous enough I’m sure, but hiding other fields could be disastrous (worth mentioning in case anyone decides hiding form fields in general like this is safe — it’s definitely not).

Also, just a quick FYI that that code is dated cause the class changed. Use this instead in the meantime:

```plaintext
.discourse-subscriptions-section-columns .subscribe-promo-code {
	display: none;
}

```
