Recalling answer from number question as a max number on another question? | Community
Skip to main content
Answered

Recalling answer from number question as a max number on another question?


Hey all,

I work in the Box Office for a Symphony Orchestra and I have a pretty unique need and want to see if anyone had come across a solution to my issue.

I am using Typeform as a way to set-up our subscription renewal form as an online option. The way our specific subscription works is that the customer renews their same (assigned) seats each year, and they are given early access to our other performances throughout the season. However, they can only purchase tickets to these add-on performances up to the number of assigned seats that they are renewing (only for early access). Is there a way that I can set up logic in my Typeform that recalls how many seats they are renewing as a maximum number of tickets they can buy for the other performances without making 10+ branching paths for each possible need?

 

Much thanks in advance for reading the wall of text, and for any help!

 

TLDR; I need the max number of one question to be equal to the number the customer enters on an earlier question within the same form. Is this possible?

 

Edit: It needs to be a maximum and not a set number every time in the case that a customer only wants some of their seats for a performance and not all of them. The way that I am currently addressing this is that in the Number Question the customer is entering the amount of tickets in, it says “Please enter up to (recall answer from before) tickets, the number of seats you are renewing” which is functional, but leaves room for error.

Best answer by john.desborough

@LSOBoxOffice 

  • if create a variable called v_toomany
  • add q3 to v_toomany (if q3 gt 0 add q3 to v_toomany)
  • if q5 gt 0 then subtract q5 from v_toomany
  • if v_toomany is less than 0 then go to statement page/ending that says “call me, maybe”

des

View original

4 replies

john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5349 replies
  • March 8, 2023

@LSOBoxOffice - if you are sending them to the typeform from your crm system, you can add the max number as a ‘hidden variable’ that you pass into the form via the url.. it gets passed as a text string, so you would have to use logic rules in the form to read the value in the string and assign a numeric value to to another variable in the typeform (works best when you can limit the max number to 10 for example: if v_max=7 then add 7 to v_counter … this sort of logic)

in the typeform you can use the approach to create a separate variable for each show where the user is entering information to allow the user to enter the number of seats they want into the form and logic rule that says something like this:

  • if v_counter  is greater than 0 then add v_counter to v_show1_count
  • if q4 (show 1 in this example) is greater than or equal to 0 subtract q4 from v_show1_count
  • if v_show1_count gte 0 then user can order this many tickets.
  • if v_show1_count lt 0 send them to a page that says ‘too many tickets’ click here to go back and revise the number

 

repeat for other shows

 

just a thought

 

des


  • Author
  • Explorer
  • 2 replies
  • March 8, 2023
john.desborough wrote:

@LSOBoxOffice - if you are sending them to the typeform from your crm system, you can add the max number as a ‘hidden variable’ that you pass into the form via the url.. it gets passed as a text string, so you would have to use logic rules in the form to read the value in the string and assign a numeric value to to another variable in the typeform (works best when you can limit the max number to 10 for example: if v_max=7 then add 7 to v_counter … this sort of logic)

in the typeform you can use the approach to create a separate variable for each show where the user is entering information to allow the user to enter the number of seats they want into the form and logic rule that says something like this:

  • if v_counter  is greater than 0 then add v_counter to v_show1_count
  • if q4 (show 1 in this example) is greater than or equal to 0 subtract q4 from v_show1_count
  • if v_show1_count gte 0 then user can order this many tickets.
  • if v_show1_count lt 0 send them to a page that says ‘too many tickets’ click here to go back and revise the number

 

repeat for other shows

 

just a thought

 

des

An interesting thought for sure. Unfortunately, the maximum number of tickets they are allowed to order per performance is based on a variable of how many subscriptions they are renewing and as we are sending them straight to the Form and then collecting data to process later I would need a way to set up a secondary variable kinda like:
 

  • If Q5 is greater than Q3 - redirect to “too many tix, call us/change amount” page

But I have yet to find a way to do this in Typeform. Thank you for your input.


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5349 replies
  • Answer
  • March 8, 2023

@LSOBoxOffice 

  • if create a variable called v_toomany
  • add q3 to v_toomany (if q3 gt 0 add q3 to v_toomany)
  • if q5 gt 0 then subtract q5 from v_toomany
  • if v_toomany is less than 0 then go to statement page/ending that says “call me, maybe”

des


  • Author
  • Explorer
  • 2 replies
  • March 8, 2023

@john.desborough Thanks so much, I think that this will work!


Reply