Show and Hide fields in Microsoft CRM:
In this post I might want to present show and Hide fields in a Microsoft CRM structure dependent on through JavaScript.
Here I will give tad clearness in my Microsoft CRM Fields . I have "lvt_opportunity" field and one more "tab_2" field.
In "lvt_opportunity " field contains any information then naturally It will show "tab_2" Field or if "lvt_opportunity"doesn't contain information it will show away "tab_2" Field .
Show and Hide Feilds using javascript
function showHideTab() {
debugger; var type = Xrm.Page.getAttribute("lvt_opportunity").getValue(); if (type == null) { Xrm.Page.ui.tabs.get("tab_2").setVisible(false); } else { Xrm.Page.ui.tabs.get("tab_2").setVisible(true); } }
0 Comments