Manage Learn to apply best practices and optimize your operations.

Another trick to check read mode / edit mode

This tip describes another trick to check read mode / edit mode.

Type the following code text on your form and make it as pass-thru HTML. Remember! don't type <computed text> between quote at editMode js variable <computed text> formula it should be @isdocbeingedited check read / edit mode is just one benefit we can reach from <computed text>, pass-thru HTML text and formula from Lotus Domino. Now, we can eliminate unneccessary hidden field and use a javascript variable combine formula for front-end programming.

editMode = "<computed text>"
//type "@isdocbeingedited" formula.

if (editMode == 1) {
   alert("you are in edit mode")
} else {
   alert("you are in read mode")

Dig Deeper on JavaScript for Lotus Notes Domino



  • 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 ...