Call a function in Html webresource on a form attribute value change
this is how i did
Create a JS webresource for adding onchange event on that field
function addmyonchange (){
if (Xrm.Page.getAttribute("Your_Field") != null) {
Xrm.Page.getAttribute("Your_Field").addOnChange(mysearchbutton );
}
function to call the button click function
function mysearchbutton (){
var obj = Xrm.Page.getControl("WebResource_<name>").getObject();
obj.contentWindow.document.getElementById('<button_ID>').click()
}
*This post is locked for comments
I have the same question (0)