Notifications
Announcements
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 🙂
@jharville
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
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.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268