I ran into a problem where I had some JavaScript running in the onLoad event of my Form that ran whether I was in Edit or Read mode. This simple solution allowed me to check what mode the form was in and whether or not to run the rest of the onLoad event functions.
Use the location.search property in your onLoad event and you can check to see if the result is equal to "?EditDocument"
Code: if (location.search == "?EditDocument"){
run functions} else { do nothing}
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 January 2001