Personalizing Subsequent Questions Based on Previous Responses in Typeform | Community
Skip to main content
Answered

Personalizing Subsequent Questions Based on Previous Responses in Typeform

  • September 24, 2023
  • 2 replies
  • 264 views

Hello Typeform Community,

I'm working on a project where I'd like to personalize the questions presented to the respondent based on their previous answers. Specifically, I want to retrieve the text value of an answer to a question and use that value to customize the content of subsequent questions.

For example, if I ask, "What is your favorite fruit?", and the respondent answers "Apple", I'd like the next question to be, "Why do you like Apple?".

Is there a built-in functionality or a workaround in Typeform to achieve this? Any guidance or best practices on how to implement this would be greatly appreciated.

Thank you in advance for your assistance!

Best answer by john.desborough

@Morgan - depending on the type of question you use, you can use the @recall function to display the ‘answer’ in subsequent pages … 

assuming your ‘apple’ was selected from a multiple choice, for example, in question 1 .. 

  • q2 question: Why do you like @q1  - the word ‘apple’ would show up in the question text

when you type the @ sign it will present the answers and variables that are available at that point in the survey and you can select the one you want. similar in fashion if you ask for someone’s first name you can show their name as well using the @recall function to select that question

if your multiple choice question allows for multiple selections - say apple, pear, orange, banana - and the user selected apple and banana then the @q1 text in the next question would show “apple, banana” 

there is no way to parse that into two statements. you would have to use logic rules to take the user to the separate questions asking them why they chose that fruit but it would be static text and  you would need one question for each possible choice

 

Typeform does not allow you to natively take the answer from a question and include it into the ‘options’ for selection in further questions ie from this list of 10 select 5. and then from this list of 5 select 2… You can’t do that dynamically in the native typeform abilities. (you may be able to do this using the APIs or webhooks but that’s a different discussion) 

 

des

View original

2 replies

john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5259 replies
  • Answer
  • September 24, 2023

@Morgan - depending on the type of question you use, you can use the @recall function to display the ‘answer’ in subsequent pages … 

assuming your ‘apple’ was selected from a multiple choice, for example, in question 1 .. 

  • q2 question: Why do you like @q1  - the word ‘apple’ would show up in the question text

when you type the @ sign it will present the answers and variables that are available at that point in the survey and you can select the one you want. similar in fashion if you ask for someone’s first name you can show their name as well using the @recall function to select that question

if your multiple choice question allows for multiple selections - say apple, pear, orange, banana - and the user selected apple and banana then the @q1 text in the next question would show “apple, banana” 

there is no way to parse that into two statements. you would have to use logic rules to take the user to the separate questions asking them why they chose that fruit but it would be static text and  you would need one question for each possible choice

 

Typeform does not allow you to natively take the answer from a question and include it into the ‘options’ for selection in further questions ie from this list of 10 select 5. and then from this list of 5 select 2… You can’t do that dynamically in the native typeform abilities. (you may be able to do this using the APIs or webhooks but that’s a different discussion) 

 

des


  • Author
  • Explorer
  • 1 reply
  • September 25, 2023

Hello John,

Thank you very much for your detailed and enlightening response. The @recall function seems to be exactly what I was looking for to display previous answers in subsequent questions. I also want to thank you for your prompt reply; it has been of great help.

 

Best regards,

Morgan.


Reply