JavaScript dynamic form submit does not work in IOS 14

We are dynamically creating a form with input fields and relying on a function to submit the form and load the URL in the pop-up. This approach has been working fine and seems to have been broken in iOS 14. Prior to iOS 14 the code below resulted in a function getting called but it doesn't get called in iOS 14.

Code Block
function RequestComment(querystring) {
Popup(requestCommentPopup, '/test/index.aspx', 'rdata', querystring, 'toolbar=no,directories=no,status=no,location=no,scrollbars=yes,menubar=no,width=885,height=780,resizable=yes');
}
function Popup(popupWindow, url, windowName, querystring, params) {
var newform;
var qsElement;
if (!document.getElementById('QSActionForm')) {
newform = document.createElement('form');
newform.id = 'QSActionForm';
newform.name = 'QSActionForm';
newform.method = 'post';
document.body.appendChild(newform);
}
else {
newform = document.getElementById('QSActionForm');
}
if (!document.getElementById('QS')) {
qsElement = document.createElement('input');
qsElement.id = 'QS';
qsElement.type = 'hidden';
qsElement.name = 'QS';
newform.appendChild(qsElement);
}
else {
qsElement = document.getElementById('QS');
}
if (popupWindow && !popupWindow.closed) {
popupWindow.focus();
}
else {
popupWindow = top.window.open('', windowName, params, false, false, false);
newform.target = popupWindow.name;
newform.action = url;
qsElement.value = querystring;
newform.submit();
}
void (window);
}



JavaScript dynamic form submit does not work in IOS 14
 
 
Q