locked
Hidden fields are visible for some seconds.... RRS feed

  • Question

  • Hello,

    I have written the Javascript to hide some fields on Form Although those fields get hide but while Loading page or refreshing these fields are visble for some seconds.. Can any one Suggest why is this happpening.

    Thanks in advance.

    Regards,

    Vandana Thakur.

    Friday, May 10, 2013 10:04 AM

Answers

  • Hide the fields by default and via the script only show them if required.
    Friday, May 10, 2013 10:11 AM
  • Hi Vandana,

    To avoid those fields to be visible while loading and refreshing the record, go to field property of those fields from customization and uncheck the visible by default checkbox.

    And write javascript to show those hidden fields where you want to.

    Thanks,

    Kabita

    :)

    Friday, May 10, 2013 10:17 AM

All replies

  • Hide the fields by default and via the script only show them if required.
    Friday, May 10, 2013 10:11 AM
  • Hi Vandana,

    To avoid those fields to be visible while loading and refreshing the record, go to field property of those fields from customization and uncheck the visible by default checkbox.

    And write javascript to show those hidden fields where you want to.

    Thanks,

    Kabita

    :)

    Friday, May 10, 2013 10:17 AM
  • Hi Vandana,

         This is OOTB behaviour. OOTB CRM 2011 form is loaded before any scripts are fired. So you see the fields for a moment if they are set to be visible. To avoid this do not chck the button visible

    If fields need to be visible under certain condition, display it back using javascript.


    Hope this helps.
     
    -----------------------------------------------------------------------
     Minal Dahiya
     
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    • Proposed as answer by Minal Dahiya Friday, May 10, 2013 10:30 AM
    Friday, May 10, 2013 10:30 AM
  • Hi Alll!!

    Thanks for the Response I was also having that thing in mind and tried it, but the Problem is same. One more thing actually this is Migrated from 4.0 to  MSCRM 2011 on-premise implementation on a 2 GB server so could this also effect this Performance .Please confirm.

     Thanks in advance.

    Regards,

    Vandana Thakur.

    Tuesday, May 14, 2013 3:57 AM
  • Hi Vandana,

        This will effect the performace as it is below the recommended setting. Microsoft recommends 8GB as minimum.

    http://technet.microsoft.com/en-us/library/hh699840.aspx

    Hope this helps.

    -----------------------------------------------------------------------
    Minal Dahiya

    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    • Proposed as answer by Minal Dahiya Tuesday, May 14, 2013 4:05 AM
    Tuesday, May 14, 2013 4:05 AM
  • Hi ,

    Once the Page has loaded completely the Java Scripts will be executing and in this you are hiding the field using the script only . So until the script runs the field will be visible i think this will be based on the performance both client and server machine. Mostly it will be based on the performance of client machine because the javascript will be running from the client machine only. So you can try hiding the field with the option default option available in CRM and otherwise you can try browsing from a client system which has a Good Configuration. Its considerable of Upgrading your CRM server because its lower than the recommended configuration.


    With Regards Athul MT http://www.athulmt.blogspot.in/

    Tuesday, May 14, 2013 5:31 AM
  • this happens when you do DOM Manipulation, like using "document.getelementbyId,

    you may want to use this line of codes:

    var control = Xrm.Page.ui.controls.get(fieldname);

             control.setVisible(true or false);

    Thursday, May 16, 2013 9:40 AM
  • Hi All,

    Thanks a lot. it got resolved.

    Friday, May 24, 2013 9:45 AM