Add the following code in the page load Event of Entity.
crmForm.all.sampleattribute.innerHTML = ''<button class='ms-crm-Button' onclick='ButtonClick();'>custom Button</button>'';
crmForm.all.sampleattribute_c.style.display = 'none';
ButtonClick= function() {
alert('alert from custom button click');
}
No comments:
Post a Comment