I have to Hide and show a web resource ..after some research i figured there is no way in XRM and CRM 2011 to do it directly .. so wrote a Javascript method to do it..But the problem now is .. I have a Label for the Web resource .. and I have to Hide that as well..
Does anyone know the name of the Webresource Label Element Id... so that i can find it as hide that as well?
SetVisibility = function (WebResourceName, bVisiblity) {
try {
//debugger;
var WebRes = document.getElementById(WebResourceName);
if (WebRes) {
WebRes.style.visibility = ((bVisiblity) ? 'visible' : 'hidden');
}
}
catch (e) {
var err = e.message;
}
}; //SetVisibility
Thanks in Advance
--
Badri