Hello, I am having a challenge on filtering my gallery to show specific records, based on the current logged user if it is a member of one of the global variable. Below code is from the OnStart property of the App where I have declared th global variable.
The logic is, based on the current logged user, if its a member of any group below, corresponding records for each group should be filtered (i.e. if isGroup1, records filtered will be those that contains a value "For Group1" and if member of isGroup2 filtered records that contains value "For Group2" and so on so forth.
Set(
isGroup1,
User().Email in [
"group1user1@email.com",
"group1user2@email.com",
"group1user3@email.com"
]
);
Set(
isGroup2,
User().Email in [
"group2user2@email.com",
"group2user2@email.com
]
)
In same logic, I want to change a Mode property of a text input field to "Password" if current logged user is not a member of global variable (isGroup1 or isGroup2) and record field value does not match (For Group1 or For Group2). Below is the current code inside the Mode property of text input field
If(isGroup1 && ThisItem.Assignment="For Group1",TextMode.SingleLine, Password)
Any assistance is highly appreciated. Thanks.