web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Does not work on live ...
Power Apps
Unanswered

Does not work on live version

(0) ShareShare
ReportReport
Posted on by 505

I was able to get the following working in the studio, but now when I go to the live publish version it no longer works.

https://powerusers.microsoft.com/t5/Building-Power-Apps/Hide-Button-based-on-value-in-Gallery/m-p/845494#M268765

 

I did have to change Set(Vis,"true");IsBlank(LookUp(Gallery1.AllItems,Name.Email=User().Email, true)) to Set(Vis,"true");IsBlank(LookUp(Gallery1.AllItems,Name.Email=User().Email)) for it to work in the studio, but it is still not working on the live version.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @send2mark 

    This is because you are mismatching your return types.  Plus you are setting, what you think is a boolean, to a text value and using that as a boolean for Visible.  Designer is fine with it but player does not like that.

     

    Change your Visible property to the following:

    With({_user:User().Email}, LookUp(Gallery1.AllItems, _user in Name.Email, true))

     

    I hope this is helpful for you.

     

  • send2mark Profile Picture
    505 on at

    I found that also, but unfortunately, I found a bigger issue.

    Our company uses the username to sign in to Microsoft services where most people use their email addresses. So when comparing the two, it will always be false.

     

    example:

    jsmith@microsoft.com

    John.smith@microsoft.com

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @send2mark 

    You can utilize the Office 365 User information to try and rectify that.

    Add the Office 365 Users Connector to your app.

    Change your Visible property to the following:

    With({_user: Office365Users.MyProfileV2().userPrincipalName}, LookUp(Gallery1.AllItems, _user in Name.Email, true))

     

    Otherwise, how can you get to a matching email?

     

  • send2mark Profile Picture
    505 on at

    That was a great idea, but it is still not working and with no errors. 

     

    I verified that both matched by using a text label for the Office365Users and on the gallery, I updated the display to show the mail. I then put what you gave me into a text Label also and it says false.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @send2mark 

    So, here is the bigger question...does your Gallery have information in it, or is it blank?

  • send2mark Profile Picture
    505 on at

    Right now it is blank so I can get the button back. Once I see the button I will add an item to see if it goes away. I did put in an item just now with a different username, but it is still false. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @send2mark 

    So if your gallery is blank, then that would be the start to the issue. 

    You said you put in an item and it was false...did it show up in the gallery?

  • send2mark Profile Picture
    505 on at

    So this is an even sign-up form. The gallery shows who is attending and I do not want someone signing up twice. So if joe@microsoft.com submits the form, he will be in the sharepoint list with his name in the People field called Name. Those people will be displayed in the gallery for others to see. It does not have to run off the gallery, it was just the only way that made sense to me.

    If he attempts to sign up again for himself or for someone else, he will not have the option to click on the submit button.

     

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard