Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Text Input in iOS Safari is pushed off screen when focused



When the user clicks on the Manufacturer (auto-complete control) field from an iOS device, the UI zooms in on that field displaying the keyboard. The field is pushed under the address bar. If the user types, the field displays.

Error Messages

Not Applicable

Steps to Reproduce

1. Create a section with an auto-complete and set it as required. 
2. Refer it in a harness and the harness in a portal. 
3. Launch the portal in Chrome and click F12. 
4. Choose the Chrome mobile emulator and choose Apple iPhone 6 as the device. 
5. Click on the auto-complete field.

Root Cause

The reported behavior is a know issue in iOS devices.


As a local-change, add the below code snippet in UserWorkForm.

function scrollToTopDelay(e) {
setTimeout(function() {
}, 500);
function scrollToTop(e) {
var target = || e.srcElement;
var dataCtl = target.getAttribute("data-ctl");
var isAC = false;
if (dataCtl) {
var json = JSON.parse(dataCtl);
if (json && json.length > 0) {
isAC = (json[0] == "AutoCompleteAG");
if (window.parent && window.parent.document && window.parent.document.body && isAC) {
var parentBody = window.parent.document.body;
  1. = "auto";
  2. parentBody.scrollTop = 0;

$(document).ready(function() {
var isAppleDevice = (/iphone|ipad|ipod/i.test(navigator.userAgent.toLowerCase()));
if (isAppleDevice) {
$(document.body).on("tap", scrollToTopDelay);

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us