How do I show different screens based on whether a user has "logged in"?

munsonbh shared this question 5 years ago
Answered

I have a login page that is not a walled access, but adds functionality when someone is logged in. How do I create a variable that will pass a value across to all pages to tell them what image to show/hide onLoad? I tried a simple binary variable, but it didn't pass to the other screens.

Comments (6)

photo
1

Take a look at this tutorial:


http://www.justinmind.com/prototyper/...

photo
1

Thanks, Victor. I got that part. What I'm fumbling with is displaying a different SCREEN or IMAGE onLoad based on whether a user is "logged in". Is this possible?

photo
1

Sure. You can store in a variable if a user is logged in or not and then create an on page load event that shows the image you want.

photo
1

I cannot make this work...


First I don't understand what the variables has to do with this. my logged in page looks very different than the welcome page, so it makes more sence to just link to a new page


I have a user name and password validator, that works fine.


I even added a success scenario following this description:


http://www.justinmind.com/usernote/te...


just making a link to the new page instead of displaying the success message.


But nothing happens when i click on the submit button with the corrrect username and password

photo
1

I will add some screens so maybe it's easier to help.


Error related to password is displayed fine:'


6ae7c648340889d9653c0d9281282dfc


And error related to user name is displayed fine:


But as soon as i add the success criteria with a new error message, two thing happens


1. the new error message takes over; if i dont enter any information i only get this one and not the field specific ones


2. even though i enter correct password and username i dont get redirected to the correct page


photo
1

I think the problem is with the parenthesis order. If you take a closer look to the condition of the success case, you'll see Input_password = '1223456' is not in the same parenthesis.