Setting up progressive profiling questions based on previous answers (branching) | Community
Skip to main content
Level 1
December 15, 2021
Solved

Setting up progressive profiling questions based on previous answers (branching)

  • December 15, 2021
  • 1 reply
  • 2548 views

Hello, 

 

I researched around and wasn't able to find an answer to this question. I want to set up a few progressive profiling questions and apply a branching logic to display questions based on their answer to the first question. The visibility rules only display the follow up questions in the same form. I want to be able to display the follow up question based on their previous answer the next time they fill out a form. 

 

Meaning it would be:

 

Question 1  has answer A, B, and C

  • If a person chooses C the next time they fill out a form they will get Question 4.
  • If a person chooses they will get Question 3  the next time they will fill out a form
  • And if they choose A, they will get random set up questions that are placed in the progressive profiling box. 

 

Does anyone have any experience with this? I'd really appreciate all comments. Thank you in advance 🙂 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

While simple enough to build using the Forms 2.0 (JavaScript) API — if you’re fluent in that area — this isn’t something that can be built using only built-in features.

 

You’re right that VRs react only to values on the same form. They can react to hidden fields, though. So one way to approach the project while still partially using built-in features: have multiple forms, differentiated by how many forms the person has filled in already. (That Form Index field would itself be a custom field, injected into the page using a {{lead.token}} to determine which form to use.) Then additional hidden fields would be set via custom Pre-Fill code (see many of my past posts for the widely used solution) and then VRs react to those fields to determine what to show next.

 

However, I wouldn’t build it that way myself!  Rather, I’d use a single form + my Pre-Fill JS + the FormsPlus::Tag helper. So the logic to show/hide/shuffle fields would be powered by custom JS, not by the branded Visibility Rules™ or Progressive Profiling™ features.

 

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
December 15, 2021

While simple enough to build using the Forms 2.0 (JavaScript) API — if you’re fluent in that area — this isn’t something that can be built using only built-in features.

 

You’re right that VRs react only to values on the same form. They can react to hidden fields, though. So one way to approach the project while still partially using built-in features: have multiple forms, differentiated by how many forms the person has filled in already. (That Form Index field would itself be a custom field, injected into the page using a {{lead.token}} to determine which form to use.) Then additional hidden fields would be set via custom Pre-Fill code (see many of my past posts for the widely used solution) and then VRs react to those fields to determine what to show next.

 

However, I wouldn’t build it that way myself!  Rather, I’d use a single form + my Pre-Fill JS + the FormsPlus::Tag helper. So the logic to show/hide/shuffle fields would be powered by custom JS, not by the branded Visibility Rules™ or Progressive Profiling™ features.