locked
CRM 2013 - Hide/Show section in Jscript cause an auto resizing off all fields included in the concerned section RRS feed

  • Question

  • Hi,

    Since imigratefrom2011 to 2013, all jscriptfunctionthatshow or hidesections cause an auto resizingoff all fieldsincludedin the concernedsections.

    For exemple, i have a fieldthatcontain 1 value ("A").  If the value "A" isselected, the section "sectionA" disappear.

    1/ By default, wheni open the form, the section "sectionA" isvisible in standard and all fieldsincludedare sizedcorrectly(2 columsby section).

    If i select the value "A" in the field, the section "sectionA" appear and all fieldincludedare automaticallyresized! (screenbelow).

    If i tryto adda value in the field"Type d'incompétence", the fieldwillautomaticallyresized! (screenbelow)

    To hide/ Show sections i'm usingthe code below:

    Xrm.Page.ui.tabs.get("tabName").sections.get("sectionName").setVisible(true);

    By hiding and showing field by field, it works perfectly but i will have to change alldeveloppmentsand the time istooshort.

    Any idea ? I tried to find informations via Google but i gotnothing.

    Thank you very much for your help.


    Regards,

    Jean-Michel

    Tuesday, March 18, 2014 6:19 PM