Skip to main content
Corrected title to match actual question, fixed link reference for readability
Source Link

Nested IF on validation How do I create a calculation in Cognito Forms that has two or more conditional outcomes?

When building a form using Cognito Forms (https://www.cognitoforms.comCognito Forms), I am trying to create a discount code field that will accept 2 different codes and apply each with a different discount on the base rate.

I cannot figure out how to calculate the discount code when using more than one discount code.

E.g. : CODE1 = 15% discount; CODE2 = 25% discount. These discounts are applied to a selected REGISTRATIONRATE.

I found this code for the calculation of the discount amount on the Field Setting of Price: = CouponCode = "CODE1" ? -FullWeekendRegistration_Amount*.15 : 0

which works for one couponcode only. What is the syntax to add the 2nd code? i.e. I want to say IF couponcode="CODE1" then apply a 15% discount to the base rate else if couponcode="CODE2" then apply a 25%. discount to the base rate. [Perhaps there is some other place to ask a question of Incognito.com support, but the site seemed to point me here!]

Nested IF on validation

When building a form using Cognito Forms (https://www.cognitoforms.com), I am trying to create a discount code field that will accept 2 different codes and apply each with a different discount on the base rate.

I cannot figure out how to calculate the discount code when using more than one discount code.

E.g. : CODE1 = 15% discount; CODE2 = 25% discount. These discounts are applied to a selected REGISTRATIONRATE.

I found this code for the calculation of the discount amount on the Field Setting of Price: = CouponCode = "CODE1" ? -FullWeekendRegistration_Amount*.15 : 0

which works for one couponcode only. What is the syntax to add the 2nd code? i.e. I want to say IF couponcode="CODE1" then apply a 15% discount to the base rate else if couponcode="CODE2" then apply a 25%. discount to the base rate. [Perhaps there is some other place to ask a question of Incognito.com support, but the site seemed to point me here!]

How do I create a calculation in Cognito Forms that has two or more conditional outcomes?

When building a form using Cognito Forms, I am trying to create a discount code field that will accept 2 different codes and apply each with a different discount on the base rate.

I cannot figure out how to calculate the discount code when using more than one discount code.

E.g. : CODE1 = 15% discount; CODE2 = 25% discount. These discounts are applied to a selected REGISTRATIONRATE.

I found this code for the calculation of the discount amount on the Field Setting of Price: = CouponCode = "CODE1" ? -FullWeekendRegistration_Amount*.15 : 0

which works for one couponcode only. What is the syntax to add the 2nd code? i.e. I want to say IF couponcode="CODE1" then apply a 15% discount to the base rate else if couponcode="CODE2" then apply a 25%. discount to the base rate.

Post Reopened by jonsca
deleted 2 characters in body; edited tags
Source Link
jonsca
  • 1.7k
  • 18
  • 23
  • 44

When building a form using Incognito formsCognito Forms (https://www.cognitoforms.com), I am trying to create a discount code field that will accept 2 different codes and apply each with a different discount on the base rate.

I cannot figure out how to calculate the discount code when using more than one discount code.

E.g. : CODE1 = 15% discount; CODE2 = 25% discount. These discounts are applied to a selected REGISTRATIONRATE.

I found this code for the calculation of the discount amount on the Field Setting of Price: = CouponCode = "CODE1" ? -FullWeekendRegistration_Amount*.15 : 0

which works for one couponcode only. What is the syntax to add the 2nd code? i.e. I want to say IF couponcode="CODE1" then apply a 15% discount to the base rate else if couponcode="CODE2" then apply a 25%. discount to the base rate. [Perhaps there is some other place to ask a question of Incognito.com support, but the site seemed to point me here!]

When building a form using Incognito forms (https://www.cognitoforms.com), I am trying to create a discount code field that will accept 2 different codes and apply each with a different discount on the base rate.

I cannot figure out how to calculate the discount code when using more than one discount code.

E.g. : CODE1 = 15% discount; CODE2 = 25% discount. These discounts are applied to a selected REGISTRATIONRATE.

I found this code for the calculation of the discount amount on the Field Setting of Price: = CouponCode = "CODE1" ? -FullWeekendRegistration_Amount*.15 : 0

which works for one couponcode only. What is the syntax to add the 2nd code? i.e. I want to say IF couponcode="CODE1" then apply a 15% discount to the base rate else if couponcode="CODE2" then apply a 25%. discount to the base rate. [Perhaps there is some other place to ask a question of Incognito.com support, but the site seemed to point me here!]

When building a form using Cognito Forms (https://www.cognitoforms.com), I am trying to create a discount code field that will accept 2 different codes and apply each with a different discount on the base rate.

I cannot figure out how to calculate the discount code when using more than one discount code.

E.g. : CODE1 = 15% discount; CODE2 = 25% discount. These discounts are applied to a selected REGISTRATIONRATE.

I found this code for the calculation of the discount amount on the Field Setting of Price: = CouponCode = "CODE1" ? -FullWeekendRegistration_Amount*.15 : 0

which works for one couponcode only. What is the syntax to add the 2nd code? i.e. I want to say IF couponcode="CODE1" then apply a 15% discount to the base rate else if couponcode="CODE2" then apply a 25%. discount to the base rate. [Perhaps there is some other place to ask a question of Incognito.com support, but the site seemed to point me here!]

expanding on question
Source Link

When filling out an Incognitobuilding a form using Incognito forms (https://www.cognitoforms.com), I am trying to entercreate a discount code field that will accept 2 different codes and apply each with a different discount on the base rate.

I cannot figure out how to calculate the discount code when using more than one discount code.

E.g. : CODE1 = 15% discount; CODE2 = 25% discount. These discounts are applied to a selected REGISTRATIONRATE.

I found this code for the calculation of the discount amount on the Field Setting of Price: = CouponCode = "HMAF15""CODE1" ? -FullWeekendRegistration_Amount*.15 : 0

which works for one couponcode only. How do I What is the syntax to add the 2nd code? i.e. I want to say IF couponcode="CODE1" then apply a 15% discount to the base rate else if couponcode="CODE2" then apply a 25%. discount to the base rate. [Perhaps there is some other place to ask a question of Incognito.com support, but the site seemed to point me here!]

When filling out an Incognito form, I am trying to enter a discount code field.

I cannot figure out how to calculate the discount code when using more than one discount code.

E.g. : CODE1 = 15% discount; CODE2 = 25% discount. These discounts are applied to a selected REGISTRATIONRATE.

I found this code for the calculation of the discount amount on the Field Setting of Price: = CouponCode = "HMAF15" ? -FullWeekendRegistration_Amount*.15 : 0

which works for one couponcode only. How do I add the 2nd code?

When building a form using Incognito forms (https://www.cognitoforms.com), I am trying to create a discount code field that will accept 2 different codes and apply each with a different discount on the base rate.

I cannot figure out how to calculate the discount code when using more than one discount code.

E.g. : CODE1 = 15% discount; CODE2 = 25% discount. These discounts are applied to a selected REGISTRATIONRATE.

I found this code for the calculation of the discount amount on the Field Setting of Price: = CouponCode = "CODE1" ? -FullWeekendRegistration_Amount*.15 : 0

which works for one couponcode only. What is the syntax to add the 2nd code? i.e. I want to say IF couponcode="CODE1" then apply a 15% discount to the base rate else if couponcode="CODE2" then apply a 25%. discount to the base rate. [Perhaps there is some other place to ask a question of Incognito.com support, but the site seemed to point me here!]

clarification of problem
Source Link
Vidar S. Ramdal
  • 17.4k
  • 11
  • 71
  • 82
Loading
Post Closed as "Needs details or clarity" by ale, jonsca
Source Link
Loading