I am getting the following error , which happens to only when i upload javascript for addrerss popup .if any one know about this error please help me
There was an error with this field's customized event.
Field: window
Event:load

my java script for address popup
***********************************
function showAddressDialog() {
var new_addressvalue;
if (Xrm.Page.context.client.getClient() != "Mobile") {
new_addressvalue = Xrm.Page.getAttribute("new_address").getValue();
}
else {
var new_city = Xrm.Page.getAttribute("new_city").getValue();
var new_country = Xrm.Page.getAttribute("new_country").getValue();
var new_countrycode = Xrm.Page.getAttribute("new_countrycode").getValue();
var new_state = Xrm.Page.getAttribute("new_state").getValue();
var new_zipcode = Xrm.Page.getAttribute("new_zipcode").getValue();
// Achieve equivalent formatting
//address1_line1
//address1_line2
//address1_line3
//address1_city, address1_stateorprovince address1_postalcode
//address1_country
var addressText = "";
if (new_city != null) {
addressText += new_city + "\n";
}
if (new_country != null) {
addressText += new_country + "\n";
}
if (new_countrycode != null) {
addressText += new_countrycode + "\n";
}
if (new_state != null) {
addressText += new_state + ", ";
}
if (new_zipcode != null) {
addressText += new_zipcode + " ";
}
new_addressvalue = addressText;
}
Xrm.Utility.alertDialog(new_addressvalue);
}
*This post is locked for comments
I have the same question (0)