2 Replies Latest reply on Jan 4, 2010 8:03 AM by lpianwi

    Protecting a field

    lpianwi Level 1

      Hi All,

       

      I do have a field on a form I am working on, and the field name is  No_of_Files which is set to read only at design time, and is dependent on a Check box, named No_of_FilesChkBox.

      I wrote the following code, and for some reason it is not working. Please, can someone tell me what is wrong.

       

      if(No_of_FilesChkBox.rawValue==1){

         No_of_Files.protected=false;

      }

      else{

              No_of_Files.protected=true;

      }

       

      Thanks

       

      LP