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 Apps
Answered

Display Mode

(0) ShareShare
ReportReport
Posted on by 353

Hi Community,

 

I have a PowerApps with four text entry boxes, and a button to delete the uploaded information. How could I make this delete button only visit when any of these four text entry boxes have something written?.

 

Regards,

 

Francisco

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Francisco77 - basic example below:

     

    If(
     Len(TextInput1.Text) > 0 || Len(TextInput2.Text) > 0 || Len(TextInput3.Text) > 0 || Len(TextInput4.Text) > 0,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

    If you're using a Form, another option set the Required property of each DataCard to true, and then check the Valid property of each DataCard.

     

    If(
     Text_DataCard1.Valid || Text_DataCard2.Valid || Text_DataCard3.Valid || Text_DataCard4.Valid,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

     

  • Francisco77 Profile Picture
    353 on at

    Thanks @Amik , but that works when all 3 entries have data, the "delete button" is visible, but how could I make it so that when any of the 3 entries have data, the delete button is visible, regardless of whether the other 2 entries are still blank? .

  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Francisco77 - the title of your post mentions the Display Mode property, but I see you're also asking about Visible property. Try the below on the Visible property:

     

    Len(TextInput1.Text) > 0 || Len(TextInput2.Text) > 0 || Len(TextInput3.Text) > 0 || Len(TextInput4.Text) > 0

     

    I have also edited my initial response (I had it the wrong way around)

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard