Hi,
I have a external application link to which I wanted to pass values from entity form controls.
I tried attaching onclick event inside form load but its not working.
Is there any other way to pass parameter to link url?
Appreciate your response.
Following is code which I tried
function FillTPIdInCustomNavLink(linkId) {debugger;var navLeftItem = document.getElementById(linkId);if (navLeftItem != null&& navLeftItem != undefined) {if (Xrm.Page.data.entity.attributes.get('mbs_mssalestpid') != null) {var tpid = Xrm.Page.data.entity.attributes.get('mbs_mssalestpid').getValue()if (tpid != '') {var strOnclickValue = navLeftItem.attributes.onclick.value;if (strOnclickValue != null&& strOnclickValue != '') { navLeftItem.onclick = function () { strOnclickValue.replace("-1", tpid); }; alert(navLeftItem.attributes.onclick.value); } } } } }
makeer