Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Accessing Xrm.Page from a webpage to a CRM form in an IFrame

$
0
0

Hi all,

I have a webpage which has an Iframe to a CRM form.

How can I access Xrm.Page from the webpage.

I've found :-

var XrmPage =document.getElementById("myIframe").contentWindow.document.getElementById("contentIFrame").document.frames[0].Xrm.Page

But don't understand what Id is needed for 'contentIframe'.

I'm trying to remove a optionset item from the webpage by using

var pickListField = Xrm.Page.getControl(“fieldName”);
pickListField.removeOption(Option_Value);

is this a good option? or is there a better way.

Thanks

Gabby


Viewing all articles
Browse latest Browse all 8223

Trending Articles



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