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

show/hide subgrid...

$
0
0

Hello, I am using the below java script code to try and hide/show this section based on another field being answered a certain way, but  I am getting an error referring to the .ui that it is undefined.  By default I have this section not visiable.  Any help is appreciated.  Thank you.

function RedeterminationsConnections()
 {
 var RedeterminationsConnections = Xrm.Page.getAttribute("nhs_redeterminationadministrator").getText(); 
   
  if (RedeterminationsConnections == "xyz" || RedeterminationsConnections == "Other" || RedeterminationsConnections == "TBD")
   {
   Xrm.page.ui.tabs.get("tab_MedicareRedeterminations").sections.get("tab_Redeterminations_sec_WhereShouldMisdirectedRedeterminationsBeRouted").setVisible(true);
   }
  else if (RedeterminationsConnections == "abc")
   {
   Xrm.page.ui.tabs.get("tab_Redeterminations").sections.get("tab_Redeterminations_sec_WhereShouldMisdirectedRedeterminationsBeRouted").setVisible(false);
   }
 } 


Viewing all articles
Browse latest Browse all 79901


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