Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics CRM webresource shrinking on IPAD

(0) ShareShare
ReportReport
Posted on by 225

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>

*This post is locked for comments

  • Rao Rapolu Profile Picture
    Rao Rapolu 470 on at
    RE: Dynamics CRM webresource shrinking on IPAD

    have you tried to publish as a sample html page and tried to view on ipad?

    Is this HTML5? as far as I know HTML5 renders well on mobile devices and mostly are compatible with html5

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,492 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans