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.


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

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

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