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 / 2 Search Bars: How to ...
Power Apps
Unanswered

2 Search Bars: How to disable one when text is entered in the other search bar

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

If I have two search bars side by side on the Browse Screen, how can I disable one when text is entered in the other search bar? Users would only need to utilize one search bar not both at the same time. Please let me know. 

halilt1_0-1705607042482.png

 

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

    @halilt1 - you can modify the DisplayMode property for both Text Input controls.

     

    For example, for the first Text Input Control, enter the following into the DisplayMode property:

     

    If(
     Len(TextInput2.Text) = 0,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

    And then enter the same code for the second Text Input control, although be mindful that you will need to reference the other first Text Input Control instead:

     

    If(
     Len(TextInput1.Text) = 0,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard