Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Hide General Tab in MSCRM 2011

$
0
0

Hi

I have a requirement like I’m hiding the General Tab of the custom form

In my form I have 2 tabs one is General and another one is Pending Status
In pending Status Tab I have one attribute which is a pick list Update Status

Value s are Active = 100000000 ,
Inactive=
100000001 and
Pending =
100000002


Whenever I’m selecting the value in the picklist = Inactive I need to hide the General Tab
My code is

var UpdateStatus = Xrm.Page.getAttribute("new_updatestatus").getValue();

       if (UpdateStatus == 100000000) {

           Xrm.Page.ui.tabs.get(0).setVisible(true);

                   }

       else {

           Xrm.Page.ui.tabs.get(0).setVisible(false);

                   }

Its working fine but whenever I made the Update Staus value readonly function is not working I'm able to see all the Tabs instead of Pending Status Tab

Please let me know how will I rectify this problem.

Thanks,


Thanks, Toushu



Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>