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 / Bug with barcode reade...
Power Apps
Unanswered

Bug with barcode reader control

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I think I have discovered a bug with the barcode reader control, it appears to be impossible to disable the button.

 

I have attempted to use the following if statements on both the Disabled and DisplayMode properties to detect if the connection is offline:

Disabled - If(Connection.Connected,false,true)

DisplayMode - If(Connection.Connected,DisplayMode.Edit,DisplayMode.Disabled)

 

When I publish the changes and update the app on my iPhone, then put it into flight mode, the barcode reader button greys out (indicating my if statement is working) however I can still press the button and the barcode reader still works as if it was enabled.

 

I then hard coded the two properties to be permanently disabled using the code below:

Disabled - true

DisplayMode - DisplayMode.Disabled

 

Updated the app on my iPhone again, button is greyed out however I can still press the button as if it was enabled.

 

I think this is a bug. Can anyone else replicate the issue? Is this a known bug?

Categories:
I have the same question (0)
  • 55552 Profile Picture
    682 on at

    Yes, I just discovered the same issue, tried both the disable and view display modes using simple logic.  As you stated above, the disable mode grays out the button, but when tapped, it is still active.  I am going to have to resort to visibility logic instead to hide the buttons, which will be more complicated, because I already had visibility logic on the barcode reader controls.  Have you learned anything further since your post?  Thanksl

  • 55552 Profile Picture
    682 on at

    Actually, I just tried using logic in the Disabled property and it worked.  The DisplayMode property (either View or Disabled) did not work.

  • 55552 Profile Picture
    682 on at

    I spoke too soon.  You were correct that neither property (Disabled, or the DisplayMode) would truly disable the barcode scanner. I eventually had to use similar logic in the Visible property to simply hide the Scanner Button instead of disabling it.

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard