Pick list items according to users...how ?? RRS feed

  • Question

  • Hi all


    I need a pick list items to be changed according to users

    any suggestions ??


    thanks in advance

    Sunday, September 19, 2010 7:38 AM


  • Hi

    you need to retrieve user roles using js. check the following post for the same



    PS: I would rather hide certain picklist options based on user role rather than changing the options text as this may casue confusion.

    Once you have implemented the above based on the user role you can then add or remove picklist options as follows

    if(UserHasRole("System Administrator")){
    crmForm.all.<picklist attribute>.DeleteOption(1);
    crmForm.all.<picklist attribute>.DeleteOption(2);
    crmForm.all.<picklist attribute>.AddOption("New value",1);
    crmForm.all.<picklist attribute>.AddOption("change value",2); }

    Hope this helps. Amar
    Sunday, September 19, 2010 8:09 AM

All replies