locked
CRM 4.0 : Error about script HideTab,HideField RRS feed

  • Question

  • Hi,

    I got error about script for HideTab,HideField by security Role details

    Role : Sales Person
    Field : productid
    Tab: 2 from left to right (It is correct ?)
    Input to OnLoad as details;

    var UserRoles = GetCurrentUserRoles(); 
    HideTabByRole("Sales person" , UserRoles, 2);  
    HideFieldByRole('Sales person', UserRoles, 
      crmForm.all.productid, 
      crmForm.all.productid_c,  
      crmForm.all.productid_d); 

    The error i got as details

    Field:window
    Event:onload
    Error : The value of the property 'GetCurrentUserRoles' is null or undefined, not a Function object

    Please help and suggestion. Thank you


    • Edited by OrdinaryGal Friday, August 23, 2013 12:57 PM
    Friday, August 23, 2013 12:56 PM

All replies

  • Republish your customization form and try again. We had the same several times every time we done the same for us the reason is parallely other team debugging their plugins.
    Friday, August 23, 2013 3:03 PM