I have a login sharepoint list:
email,password,status, category
| email | password | category | status |
| account@mywebsite.com | Test@123 | Accountant | Active |
| helpdesk@website.com | Test@321 | HelpDesk | Active |
| tigray@adey.com | help@us | IT | inactive |
in my power apps i have a sceen with 3 buttons[Accountant,Help Desk and Information Technology] linked to other screens.
a successfully logged in user will see, his/her category active button while the other buttons will disabled.
example if an accountant category user logged in, the user will see the button "Accountant" clickable while the others are disabled.
if a helpdesk user logged in, the user will see the "Help desk " button active while the rest buttons will be disabled.
how can i do that.?here is my login code,
If(
CountRows(
Filter(AssetLoginUsers, And(
txtemail.Text = email,
txtpassword.Text = password
)
)
) = 1,
Navigate(
homeDashboard,
ScreenTransition.None
),
Notify(
"Invalid Password!!! Please Enter a Valid Password",
NotificationType.Error
)
);
help me in modifying and capturing the user category to compare it with button.