locked
How to show particular attribute on form when its default visibility option is unchecked on the field display properies. RRS feed

  • Question

  • Hi,

     

    We have ser visibilty checkbox option on  field display properties of the one field  and now we want to show that field on the crm form  by using javascript. but it is not working.

    For more clarity  the visibilty setting mage is attached.

     

    Can anybody help on this..

     

    Thanks in advance..

     


    hari
    Monday, October 24, 2011 9:40 AM

All replies

  • Please post your JS, else we cannot say, why it is not working.
    Monday, October 24, 2011 1:50 PM
  • function SetDisabledLevel(objFieldName, vblnDisabled) {
        try {
                objField = Xrm.Page.ui.controls.get(objFieldName);
                objField.setDisabled(vblnDisabled);
            }
            catch (e) {
                alert('SetDisabledLevel failed with exception of ' + e.Message);
        }
    }

     

    SetDisabledLevel("accounttype", false);


    hari
    Tuesday, October 25, 2011 4:04 AM
  • it will be setVisible not setDisabled.

    I hope this helps.


    Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com

    • Proposed as answer by Amreek Singh Tuesday, October 25, 2011 1:23 PM
    • Edited by Amreek Singh Tuesday, October 25, 2011 1:24 PM
    Tuesday, October 25, 2011 1:23 PM