locked
Hide/Show fields in CRM 2011 by occupying the empty spaces using script RRS feed

  • Question

  • Hi Guys,

    Is there any scripts other than the below to hide and show the fields without blank space, since this script is not supported in cross browsers due to 'crmForm'.

    crmForm.all.attribute_name_c.style.display = 'none';

    crmForm.all. attribute_name_d.style.display = 'none';

    We have tried using 'document.getElementbyId' but it is behaving same as Xrm script. Please help us on rectifying the cross browser issue.


    Arun Kumar G

    Friday, July 18, 2014 7:00 AM

All replies

  • Hi,

    Did you try with this? Do not append _c or _d after the attribute name.

    Xrm.Page.getControl("attribute_name").setVisible(false);


    Admin QuikView Solution for CRM 2013


    Friday, July 18, 2014 7:08 AM
  • Dynamotion,

    We have tried this as this is working same as described which is showing the blank space after the field is hidden.


    Arun Kumar G

    Friday, July 18, 2014 8:06 AM
  • Try by using this

    var vAttribute = Xrm.Page.ui.controls.get("new_attributename");   
    vAttribute.setVisible(false);   


    Friday, July 18, 2014 11:21 AM