How to create conditions around a promo code field?