document.getElementById() RRS feed

  • Question

  • hi,

    I'm doing an upgrade from CRM 2011 to CRM 2015.  I'm going through the javascript and need to change all the instances of document.getElementById() to  CRM 2013 and CRM2015 instance.

    document.getElementById('nav_ava_ava_country_ava_riskmanagement').style.display = 'none';

    Thanks in Advance


    RajasekharReddy K

    Monday, January 11, 2016 4:37 AM

All replies

  • document.getElementById is not a supported customization.

    Please post a screenshot of the part you want to hide inside the form so we can check if there is a supported way to do

    My blog: www.crmanswers.net - CRM Theme Generator

    Monday, January 11, 2016 5:09 AM
  • Hello,

    I as far as I remember in CRM 4.0/2011 time mentioned code was used to show/hide navigation items located at the left side of CRM Entity form. Since 2013 (and it is supported now for 2015/2016) we have got supported approach to show/hide navigation items. Try to replace mentioned code with following:


    Dynamics CRM MVP
    My blog

    • Proposed as answer by F.Kuyler Monday, January 11, 2016 8:25 AM
    Monday, January 11, 2016 6:00 AM