locked
Make fields non editable on value change RRS feed

  • Question

  •  

    Hi

     

    I want to make some fields read only in the form based on a value selected and not read only based on another value selected in the picklist in same field. How do i go about this please.

    Would really appreciate some help.

     

    regards

    Snow White

    Friday, May 30, 2008 7:22 AM

Answers

  • // set it as readonly
    crmForm.all.new_textfield.readOnly = true;
    // OR set it as disabled
    crmForm.all.new_textfield.disabled = true;

     

    Regards,

    Imran

    mscrmexpert@gmail.com



    Edit by Ronald Lemmen:
    It should be disabled with a capital D. Example:
    if (crmForm.all.new_yourpicklist.DataValue == 1){
      crmForm.all.new_textfield.Disabled = true;

    Friday, May 30, 2008 1:36 PM
    Moderator