I created an app for recording shrink in my company with a physical handheld barcode scanner. For it to be completed, I need the SetFocus() formula to toggle the keyboard when the user saves the data for each item, that way the scanning process is continuous.
Here the user already scanned the item:
Ideally, when they press one of the three reasons ( which are Buttons), sets focus on the UPC text field and triggers the keyboard, but nothing happens:
This device I'm using is iOS. Can this be fixed?
Hi @ehg ,
On Apple iOS, the soft keyboard will only be displayed automatically if SetFocus was initiated by a direct user action. For example, invoking from a button's OnSelect property will display the soft keyboard while invoking from a screen's OnVisible will not. Did you make sure that you are using the function in OnSelect property?
@v-monli-msft hi, Mona. Yes I have the SetFocus() in OnSelect property of three buttons, those that you can see in the center of the screen. But it won't trigger the keyboard.
See on this image, it shows the formulas I have in OnSelect property. The very last one is the SetFocus:
Hi @ehg ,
Is it iOS 12 or later platform? This is minimum required.
Check out the on demand sessions that are available now!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Features releasing from October 2020 through March 2021
Check out the Power Platform Community Highlights