Conditional page linkeage

Julie Khoper shared this question 3 years ago
Answered

Hello,


Here is what I'm trying to do:


I have a landing page with two buttons: 1) Platforms and 2) Funds. They both open the same modal window. In the modal window there are some selections and a Submit button. When the user clicks on Submit button, I want it to go to either a Platforms page or a Funds page depending on what the user clicked initially. I could create two different modal windows and solve it that way, but I was wondering if there is a way to do it with just one modal window.


Thanks!

Comments (1)

photo
1

Hello Julie,


You can use variables in this instance to set the initial page and subsequently use a condition testing the variable value to determine the link. To do so, you may complete the following steps:


1. For each page (Platforms and Funds), have a set value action to occur on page load that sets the value of a variable (defined through the event builder or variable tab) to the corresponding page


2. Then, on the submit button, create a when condition that checks the value of the variable. For example, if the variable is equal to Platforms, then link to the Platforms screen. Else, link to the Funds screen.


Hope this is able to help.


Best,


Luisa