Answered

Multiple choice to determine payment

  • 28 February 2023
  • 2 replies
  • 23 views

I have a question “how many applications are you applying to” with 4 answers. I would like them to be charged for as many applications they are applying to. the last answer is asking them if they would like to enter our scholarship so i dont want them to be charged an app fee. I have tried to do this but when they apply to all 3 some how they get charged $600instead of $75. I now get why that is happening but i dont know how to fix it. I am clearly over duing it but i am not sure how to fix the problem 

 

icon

Best answer by john.desborough 28 February 2023, 03:28

View original

2 replies

Userlevel 7
Badge +6

@Hansgirlgangcraf - it looks like your logic evaluates in sequence: 

  • if a&b then multiply the price x2 = 25*2 = the now current value of price (ie 50) 
  • if a&c then multiply price *2 = 50* 2 = 100 = the now current value of price
  • if a&b&c then multiply price x3 = 100 *3 = 300= now current value of price
  • if B&C then multiply price  x 2 = 300 x 2 = 600 

that is what happens if all the conditions are true

you may be better served to use the following: 

  • if A then add 25 to price
  • if B then add 25 to price
  • if c then add 25 to price 

that way the max that would be in the price variable is 75 … 

 

that is much simpler

des

Userlevel 7
Badge +5

Hi @Hansgirlgangcraf I hope you’re doing well! Did the solution above work for you? Let us know if you still need help!

Reply