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>
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
This was first published in February 2003