locked
Changing Field Attributes on CRM Form depending opportunity stage value RRS feed

  • Question

  • HI
    I was wondering what the best and easiest way would be for:

    Opportunity Stage reaches 80%
    This stage requires that the recources must be allocated.
    *Consultant
    *PM
    *Technical Architect
    *Developer
    These will be lookups to users.
    I want these fields which is not business required at the beginning stage to be business required as the opportunity reaches 80%.They must be read only before.


    Tiaan van Niekerk http://crmdelacreme.blogspot.com Skype:tiaan.van.niekerk1
    Tiaan van Niekerk http://crmdelacreme.blogspot.com Skype:tiaan.van.niekerk1
    Tuesday, April 7, 2009 11:29 AM

Answers

  • Use Javascript on the probability attributes on_change event
    To set a field as required in javascript:

    crmForm.SetFieldReqLevel(<field>,<true/false readonly>);

    To set readonly:
    crmForm.all.<field>.enabled = false;
    crmForm.all.<field>.disabled = true;

    Best regards
    Jens
    Tuesday, April 7, 2009 12:50 PM