Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Dynamics CRM webresource shrinking on IPAD

$
0
0

We use CRM 2016 online, we have web resource on the form that we are using to display a Google Form.  Everything works fine on a laptop, our issue is the IPAD.  We do not use the CRM app, we simply use Safari.  When we go to our Account in Safari and click on the Google Form it shrinks to what looks to be the size if we used AUTO for height and width in our code.  We want it to remain the same size and wanted to see if anyone has had this issue and solved it or has any ideas.  Code below.

<html><head>
<title> TEST Web Frame </title>
<meta charset="utf-8"><meta></head>
<body onload="GetAcctName()"><div overflow:auto; -webkit-overflow-scrolling: touch;><iframe src="https://*****/forms/d/1JENbXo4h8bhAWppd3o14nhe_NpnS6ToweMUd5_46w9Q" id="MyCustomSrc" width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
<script type="text/javascript">
function GetAcctName() {
var AcctName =  parent.Xrm.Page.getAttribute("name").getValue();
var AcctRecID =  parent.Xrm.Page.getAttribute("dds_account_record_id").getValue();
var street1 = (parent.Xrm.Page.getAttribute("address1_line1").getValue() == null) ? "" :parent.Xrm.Page.getAttribute("address1_line1").getValue();
var street2 = (parent.Xrm.Page.getAttribute("address1_line2").getValue() == null) ? "" :parent.Xrm.Page.getAttribute("address1_line2").getValue();
var city1 = (parent.Xrm.Page.getAttribute("address1_city").getValue() == null) ? "" :parent.Xrm.Page.getAttribute("address1_city").getValue();
var state1 = (parent.Xrm.Page.getAttribute("address1_stateorprovince").getValue() == null) ? "" :parent.Xrm.Page.getAttribute("address1_stateorprovince").getValue();
var zip1 = (parent.Xrm.Page.getAttribute("address1_postalcode").getValue() == null) ? "" :parent.Xrm.Page.getAttribute("address1_postalcode").getValue();

var PHYSADD = street1 + " " + street2 + ", " + city1 + ", " + state1 + ", " + zip1;
SrcURL = "https://*****/forms/d/e/1FAIpQLSfJx8OW4ywzd7NwY86UEBHpi1xGG1mPvWW0ApwQlg8WUMz6og/viewform?entry.1078935128=" + AcctName + "&entry.131749811=" + AcctRecID + "&entry.821164400=" + PHYSADD;
document.getElementById("MyCustomSrc").src = SrcURL;
}
</script>
</body></html>


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>