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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Disable virtual keyboa...
Power Apps
Unanswered

Disable virtual keyboard in text field (Mobile app)

(1) ShareShare
ReportReport
Posted on by 67

Hello, can you disable the virtual keyboard in a specific text field of a mobile app?

I am working with a scanner and it is somewhat annoying because the virtual keyboard is always activated when I read a barcode.

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,616 Moderator on at

    @Gerard_Araq 

     

    There is a property  of Input Text VirtualKeyboardMode leave it Blank or use Numeric it should help

     

     

    SebS_0-1679768743154.png

     

    But I don't know why it will trigger the virtual keyboard do You pass scan by variable to default property?

  • sohilbhalla Profile Picture
    72 on at

    Hi, it will open the keyboard if  we are using external scanner . The scanner will act as an input device like keyboard and we need to set focus to textbox to read or populate the scanned value. As in when focus gets set to textbox , the virtual keyboard opens up by default.

  • Mach_GO_GO_GO Profile Picture
    27 on at

    Hey, did you ever figure out a good solution to this? I'm struggling with the same issue. 

  • ValiantKillmore Profile Picture
    59 on at

    Also have the same struggle here with data terminals. Bumping this up and gonna vote on the idea panel for this to be implemented in power apps by default as an option

  • sohilbhalla Profile Picture
    72 on at

    Hi @ValiantKillmore @Mach_GO_GO_GO ,

     

    What devices are you running the power apps on?

  • ValiantKillmore Profile Picture
    59 on at

    @sohilbhalla 
    Hey, sorry for the late response, was on a long holiday break : D
    We're using Zebra TC26 data terminals. We have an app designed for warehouse usage and there are a few places where we specifically want to disable the virtual keyboard for both screen real estate and to not allow people to write in barcodes by hand.

  • sohilbhalla Profile Picture
    72 on at

    Follow the attached document to configure zebra scanner for powerapps and once done, create a simple screen with a textbox and hide that textbox behind a rectangle and set the tab index of the textbox as 1.

     

    Modify OnChange event of the textbox to set a variable like Set(scannedtext,Self.Text) and then display it on a label.

     

    Scan the code with the external scanner which will fire the onChange event of textbox  and you will get the scanned value without keyboard being popped up. Enjoy!!

  • ValiantKillmore Profile Picture
    59 on at

    Oh wow, that does sound like a lot of work for something so basic, but I will give it a go!
    Thanks for the documentation on it! : )

  • Steef Profile Picture
    2 on at

    Hi, I followed your manual and created the profile and power app accordingly.

    I successfully can show the scanned value in a label so the <tab>scannedvalue<tab> is working but although the input field is not selected the keyboard shows up after a few seconds.

     

    I'm using a Zebra MC220J.

    Also when the scan is done and I want to scan again it's not working. I have to tick on the screen once before I can scan again.

     

    Any idea what I can try?

  • sohilbhalla Profile Picture
    72 on at

    @Steef  I understand. I think I also faced this issue earlier. So in order to solve this, your textbox needs a companion 😁

     

    Add a button to the screen which is positioned above the textbox on the screen order from top to bottom ( Y unit for button should be less than textbox). Hide that button as well behind the rectangle. Make sure the tab index of the button is -1. As fig shown below, The big rectangle is a textbox and small is a button.

     

    sohilbhalla_0-1704877778186.png

     

    Then at the end of the OnChange event of the textbox set the focus to the button eg SetFocus(Btn_ScanHidden);

    I believe this will avoid the Keyboard been opened and also the next scan should work without tapping on the screen.

     

    Do let me know the outcome. All the best!

     

     

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard