Hello everyone!
I have a button on my screen that I do not want visible to people with the '@gmail.com' email address domain. How would I do this?
Thank you 🙂
Solved! Go to Solution.
For simplicity in the app (the ability to maintain easily), I would set a global variable in the OnStart action of the App.
Set(glbUnRestricted, !("gmail.com" in User().Email))
Then on the button, just set the Visible property to: glbUnRestricted
I hope this is helpful for you.
You can create a collection with all such email domains and place it in OnStart.
Set(varCurrentUserEmail, ToLower(User().Email));
ClearCollect(colAvoidEmailDomains, ["gmail.com","yahoo.com"])
In the Button's visible property, place following formula:
If(varCurrentUserEmail in colAvoidEmailDomains, false,true)
I hope this helps you.
Regards
Krishna Rachakonda
If this reply helped you to solve the issue, please mark the post as Accepted Solution. Marking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone. |
For simplicity in the app (the ability to maintain easily), I would set a global variable in the OnStart action of the App.
Set(glbUnRestricted, !("gmail.com" in User().Email))
Then on the button, just set the Visible property to: glbUnRestricted
I hope this is helpful for you.
User | Count |
---|---|
125 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
215 | |
181 | |
139 | |
97 | |
83 |