Hi,
I have a wen resource whisch is written in javascript.
This web resource rates a button and my system is crm 2016.
The code for the button is supported ÅŸin CRM 2015;but in CRM 2016 not.
The button code is:
var latLon = getField("new_enlemboylam");
if (latLon && latLon.getValue() != null) {
var insertAfterField = document.getElementById('new_enlemboylam_d');
parent.document.document.getElementById('new_enlemboylam_d').insertBefore(createButton("btnMap", "Google Map", 100, function () {
var s = "http://" + window.location.host + "/ISV/vizyonera/map/bayimap.html?geo=" + latLon.getValue();
window.open(s, "", "dialogWidth:800px; dialogHeight:600px; center:yes");
}), parent.document.document.getElementById('new_enlemboylam_d').nextSibling);
I use code validation tool. The tool shows the .nextSibling word in blue. How can i fix it . I use this code while the form is loading. On loading it gives me javascript error. When ı remove the web resource form Onload event, the form works correctly and the form dos not give me error. But ı need the button .
Can anyone help me please?
*This post is locked for comments
I have the same question (0)