Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Show Hide not working - JS function

$
0
0

This function has worked before but it wont work not. Can anyone help debug whats wrong with the JS code?

function FunctionTitle() {

   var FunctionTitle = Xrm.Page.data.entity.attributes.get("field title").getSelectedOption().text;

   HideShowTab("Tab Title", false); //initial setup

   if (FunctionTitle[0] != null) {

       switch (FunctionTitle) {

           case "Option 1":

               HideShowTab("Tab Title", true); //initial setup

               break;

           case "Option 2":

               HideShowTab("Tab Title", false); //initial setup

               break;

           case "Option 3":

               HideShowTab("Tab Title", false); //initial setup  

               break;

           case "Option 4":

               HideShowTab("Tab Title", false); //initial setup

               break;

       }

   }

}


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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