Introduction
The autofocus feature for text widgets is not activated when the application is accessed on mobile devices. This is the standard behavior in Mendix applications, as they operate differently on mobile platforms compared to desktops.
Environment/Prerequisites
- Progressive Web App (PWA)
- Native Mobile
- Android
- iOS
Instructions/Procedure
To address the situation described, please follow the steps outlined below to establish a workaround.
-
Install the Mendix Web Actions module:
Create a Nanoflow to open the desired page
Add the Create Variable activity of data type String
Insert .mx-name- in the Value space. It should be .mx-name- followed by the name of the input element that needs to be autofocused
Add the activity Set Focus at the end of the Nanoflow flow
The Nanoflow should look like the image below:
Outcome
The text input field should automatically gain focus when the application is launched on a mobile device.
Internal information related
- 217254
- UFC-1264
0 Comments