locked
Regarding ms crm 2011 RRS feed

  • Question

  • what is the java script code to hide a section based on pick list value or option set value in ms crm 2011
    Tuesday, June 26, 2012 10:52 AM

All replies

  • Hi kommalapati,

     function optionset()
    {
    var myOptionSet = Xrm.Page.data.entity.attributes.get("optionsetschemaname").getvalue();

    //geting optionset value ex:1

    if(myOptionSet ==1)
    {

    //hiding section in tab_3(tabname) and tab_3_section_2 is sectionname

    //here i'm hiding section1 in tab1

    Xrm.Page.ui.tabs.get("tab_1").sections.get("tab_1_section_1").setVisible(false);
    }
    else
    {
    Xrm.Page.ui.tabs.get("tab_1").sections.get("tab_1_section_1").setVisible(true);
    }
    }

    Tuesday, June 26, 2012 12:09 PM
  • thanks gugan I gt it

    Friday, June 29, 2012 9:37 AM