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 / DisplayMode Function
Power Apps
Unanswered

DisplayMode Function

(0) ShareShare
ReportReport
Posted on by 353

Hi Community,

 

How could I use the DisplayMode property to make sure that if several text entries and galleries were completed, a button would appear to send a response with the Patch function?.

 

Regards,

 

Francisco

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,968 Super User 2026 Season 2 on at

    Hi,

     

    You would need to build a full validation formula.

     

    In the DisplayMode for the button you would add something like this. Remember you said gallery and text boxes.

    I also want to note that you essentially described making something invisible, but you asked how to use DisplayMode. In my example they can SEE it but they cannot click it.

     

    You can also put this code in the buttons Visible and simply change DisplayMode.Edit to true, and DisplayMode.Disabled to false and then it will be visible/invisible

     

    If(
    !IsBlank(TextInput1.Text) && 
    !IsBlank(TextInput2.Text) &&
    !IsEmpty(ComboBox3.SelectedItems) &&
    !IsBlank(Gallery2.Selected.ChangedDescription)
    
    , 
    DisplayMode.Edit, 
    DisplayMode.Disabled
    )

     

     

    So it depends on what field types you wanna check but thats it above.

    You can also do = and not = etc. Just have to chain it altogether

    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard