So I m wondering if there is a solution I can use for the following situation from foreUI. Here is the use case. Imagine the amazon or facebook website.
1. New user creates a account.
2.1. User assigns this newly created account to a group ( for example family, friends etc on facebook)
2.2. User subscribes to various companies page.
Now step 2.2 and 2.1 not always in the same order i.e. step 2.2 could occur before step 2.1 occurs. However the UI for step 2.2 would be different if it is started first. I can create two different types of pages in the same plot but I am not able to understand if there is a easy way for me to direct the users to the appropriate page depending if they completed step 2.1 to start with or not. Any suggestions?
The case you mention is quite common for web site prototyping. The easiest way to achieve this is to set a global property when step 2.1 is completed. In the “Page Loaded” event handler for step 2.2, check the value of that global property and do different things accordingly.
Actually you can make step 2.2 as a “page router”, it will switch to 2.2.1 or 2.2.2 depending on the value of the global property you set in 2.1 step.
Hope that makes sense for you.
Okay. Thanks Xavier. Just to clarify, it seems like one can do this using two methods, 1. by checking global properties in page loaded event handler and 2. by using page router method. right? I wasn’t very sure if you were giving me a single or multiple solutions.
Yes I have suggested two solutions, and they just have some differences at the last step.
From now on, the two solutions are differrnt.
Solution A: Control the content in step 2.2 page, according to the property value. You can show/hide elements as you need.
Solution B: Just switch to different predefined pages, according to the property value.
Personally I would recommend solution B, since controlling the content in single page is complex, I perfer creating two different pages and switch between them.
Thanks Xavier. So how can one typically define this step in this process? I mean on a page I feel having some elements would be one way for me to determine the step completion. Specifically if you look at the screen shot below, I am not sure if I am supposed to click on insert property and select a element on the screen for this step?
or else could be the property be any random string which has nothing to do with the elements( button, number of rows in a table etc.)? Thanks
This question is now closed