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



  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/ community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury