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>