RE: How to get text field value in crm 2015 which is coming from Html webresource through javascript?
Hi i am using this one but getting null in alert of visit date. I need to get value of this text field.
function Rollback(){
var source = Xrm.Page.data.entity.attributes.get("statuscode")
var information = source.getValue();
var customHtml = Xrm.Page.ui.controls.get("WebResource_SlotAvailability");
var destination = customHtml.getObject().contentWindow.document;
if(destination) {
var visitDate = destination.getElementById("vistime");
alert(visitDate);
if(customControl) {
customControl.value = information;
alert(customControl.value);
}
}
}