Manage Learn to apply best practices and optimize your operations.

Deletion of attachments only by admin group

How to validate the file attachment whether it is marked for deletion or not.

How to validate the file attachment whether it is marked for deletion or not.

Place a hidden field "IsAdmin" with properties Text, Computed for Display and write the JavaScript below in "JSHeader." Call this function while saving the document.

//Validation for allowing only Admin to delete attachment in the document
     for (i=0; i<myForm.elements.length; i++)
    		    //checking for attachment fields first
         if (!(myForm.elements[i].name.indexOf("%%Detach") =="-1")) 
               //The attachment field is a check box & is checked 
              if (myForm.elements[i].checked ) 
                 //the user is not a member of the Replog Admin Group
                 if(myForm.IsAdmin.value== "0")
                 	alert("You have no privilege to delete the attachments");
                 	return false;

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials'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 ...