Hide objects from selected users depends on the login info entered
Hello,
So I am getting a little deeper in Justinmind, I have 5 users, each will see different objects (Texts, button, etc) within any page, and I would like to make this by creating a login validation, for example I will have to type 'admin' in the username field and click 'login' to view what can the admin see, the same goes for the other type of users.
I saw the Data driven web prototype and variables but it didn't help me very much.
Thanks a lot
Hi there,
First create a variable that will represent the selected user. Then create an 'on click -> set value' event for the login validation button, and have it set the value of the variable as the value of the selected user. Then, on the other page, create an 'on page load' event with hide/show events for all elements you would like to be hidden/shown depending on the user selected. Lastly, create a condition for each of these hide/show events that is" When... [variable] = 'user'" - creating this condition for each different possible user type.
Let me know if you have any questions.
Best,
Danielle
Hi there,
First create a variable that will represent the selected user. Then create an 'on click -> set value' event for the login validation button, and have it set the value of the variable as the value of the selected user. Then, on the other page, create an 'on page load' event with hide/show events for all elements you would like to be hidden/shown depending on the user selected. Lastly, create a condition for each of these hide/show events that is" When... [variable] = 'user'" - creating this condition for each different possible user type.
Let me know if you have any questions.
Best,
Danielle
Thank you so much for help guys! It's working now :)
Thank you so much for help guys! It's working now :)
Replies have been locked on this page!