Hi,
I'm using CRM Online 2016 v8.1,
Before using Turbo Forms I was able to manipulate the DOM (I know it's not supported), but now I'm not able to reference any object of the form, to check what I can/can't do I did the following function:
function aaa() {
try {
console.log($(parent.document).find("#contentIFrame0")[0].contentDocument.head);
} catch(err) {
console.log(err.message);
}
try {
console.log($(document).find("#contentIFrame0")[0].contentDocument.head)
} catch(err) {
console.log(err.message);
}
try {
console.log(Xrm.Page.getControl("contentIFrame0").getObject())
} catch(err) {
console.log(err.message);
}
}
This is what I get in the browser console:
Cannot read property 'contentDocument' of undefined
Cannot read property 'contentDocument' of undefined
Cannot read property 'getObject' of null
Is there a way (supported or not) which allows me to reference the HTML obj in TurboForms?
*This post is locked for comments
I have the same question (0)