Allow Automatic Focus
.focus() event on page load to focus an input field.
Default Value: Off
By default, iOS/iPadOS does not trigger automatic focus events, which means the visitor must tap into a text field to bring up the on-screen keyboard. This setting allows you to override that behavior, but is disabled by default as the on-screen keyboard appearing automatically on page load may shift content off-screen and can be disorienting or frustrating for a visitor, rather than allowing them to control when the keyboard is shown by touching inside an input field to trigger focus.
In some cases, you may want to turn this setting on to streamline data entry. For example, when using a keyboard wedge barcode scanner, where the iPad recognizes the scanner as an external keyboard, the automatic focus would allow scanning data to immediately fill an input field without requiring a user to interact.
Values for Remote Settings Control & Managed App Configuration
- Added in version 5.4.