contentIFrame in CRM 2013
So, Just as usual, was trying to validate my JS using IE 10 Developer Tool and there I was shocked.The contentIFrame object returned NULL... Have they used something other than an IFrame.. Come on that's not possible..
Well they changed the name.. This is where I hate the developers.. Why should you change something just for the sake of it!! :(
So now, you can access the from elements and test your JS (without creating a webresource/ adding a debugger and all such pains) by using 'contentIFrame0'
Eg: contentIFrame0.Xrm.Page.ui.setFormNotification("Test","ERROR","test")
contentIFrame0.Xrm.Page.getAttribute('subject').getValue()
Hope it helps!! :) Happy Coding!!