Disabling checkbox for file deletion in Web

How to disable the checkbox option for "Marked for deletion."

View expert feedback to this tip.

This JavaScript code in the onload event of the form will disable the checkbox option "Marked for deletion."

var inputelems=document.forms[0].
getElementsByTagName("INPUT");
  for(i=0;I<inputelems.length;i++)
  {
   if(inputelems[i].type=="checkbox" && 
inputelems[i].name.charAt(0)=='%')
   {
      inputelems[i].disabled=true;
   }  
  }

EXPERT FEEDBACK TO THIS TIP

This would probably work, but it's not the proper Domino way, which would be using the $V2AttachmentOptions field as described here.

Do you have comments of your own? Let us know.

Dig Deeper on JavaScript for Lotus Notes Domino

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close