VIEW MEMBER FEEDACK TO THIS TIP
This tip explains how to load Domino Web forms faster and even reduce the amount of time it takes to save. The technique outlined here is particularly beneficial to developers who have a habit of generating HTML for all fields on a form.
When a form loads, it renders objects that include HTML information, JavaScript, form fields (editable, hidden and computed), etc. Note that hidden fields are rendered only if you have selected the "Generate HTML for all fields" property of a form.
There are both advantages and disadvantages of the above action.
Advantages
Disadvantages
The solution to the above disadvantages is to deselect the property "Generate HTML for all fields" of the form. The question arises, though -- how will one access the fields? The answer: Use the following JavaScript technique.
In the HTML Head Content, write the following code:
As shown in the above example, you can create global variables containing values evaluated using Formula Language, or just access Hidden Fields. You can also create JavaScri
To continue reading for free, register below or login
To read more you must become a member of SearchDomino.com
');
// -->

pt functions that contain a mix of JavaScript and Formula Language.
Once the variables are declared globally, they can be accessed anywhere on a button click, JS Header, .JS file, etc., using JavaScript.
MEMBER FEEDBACK TO THIS TIP
After reading this tip, I have two comments:
I think that was too much troubleshooting for what was supposed to be a wear-tested tip. I'm using ND5 though; perhaps the code runs cleaner in ND6+.
Mark E.
******************************************
Since I got some errors, I made some additions to the script. If you set semicolons at the end of the "var lines" and around the @Text document unique ID, it works fine and becomes more readable.
Klaus W.
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip exchange by member Kapil Daddikar. Please let others know how useful it is via the rating scale below. Do you have a useful Notes/Domino tip or code to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.