Title: Problems with couponcode
Last modified: June 18, 2017

---

# Problems with couponcode

 *  Resolved [Shorcy](https://wordpress.org/support/users/darkminersdk/)
 * (@darkminersdk)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/problems-with-couponcode/)
 * Hello,
 * Any that know how to make the coupon code 100% invisble for visitors on my site?
   Because when they go to the coupon code area (Discount Code) then if they right
   click and press “View elements” then they can see the coupon code. Is there any
   way to do so they cant see the code?
 * Picture of the problem:
    [https://gyazo.com/d0e59511c261f7993a7ca93b6538de38](https://gyazo.com/d0e59511c261f7993a7ca93b6538de38)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Josh Pollock](https://wordpress.org/support/users/shelob9/)
 * (@shelob9)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/problems-with-couponcode/#post-9250309)
 * [@darkminersdk](https://wordpress.org/support/users/darkminersdk/) –
 * Thanks for using Caldera Forms. At this time we do not have real discount code
   functionality. So using conditional logic based on the hidden field is the only
   way.
 *  Thread Starter [Shorcy](https://wordpress.org/support/users/darkminersdk/)
 * (@darkminersdk)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/problems-with-couponcode/#post-9252225)
 * I already made it by using caldera forms. But the problem is they can see what
   the code is when they view it in elements rough Google. Is there a way to disable
   that?
 *  [jendarkins](https://wordpress.org/support/users/jendarkins/)
 * (@jendarkins)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/problems-with-couponcode/#post-9412983)
 * I think I may have come up with a workaround for this issue that is working on
   my site.
 * First create a variable:
 * I’ll name it “disc_amt” and set the value to the amount of your coupon (example:“
   20” if you are offering a $20.00 off coupon).
 * Then create 3 fields as follows:
    -  Field type: single-line-text; name: “coupon_code”
    -  Field type: hidden field; name: “disc_multiplier”; value: 1
    -  Field type: calculation field; name: “discount_amount”; calc: “var:disc_amt”
      x “disc_multiplier”
 * Next, create a condition called “discount”
    -  Set it to **SHOW** and select fields “discount_amount” and “disc_multiplier”
    -  Then set the logic to: **IF** “disc_code” **IS** “type your actual coupon
      code here” (example: “$20_Off_Sale_Coupon”).
    - If everything is correct, when the proper coupon code is entered, the field“
      discount_amount” will be displayed with the value: $20.00 (Note: because this
      is a calculation field, you have the option to set the way the number is displayed).
      Now add the “discount_amount” field to whatever calculation you already are
      using to arrive at the grand total amount.
    - This can also be used with multiple coupon codes, simply by adding conditions
      for each code, and an additional variable for each discount amount.
 *  -  This reply was modified 8 years, 9 months ago by [jendarkins](https://wordpress.org/support/users/jendarkins/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problems with couponcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [jendarkins](https://wordpress.org/support/users/jendarkins/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/problems-with-couponcode/#post-9412983)
 * Status: resolved