< Back

Document Subject: Javascript: Add a hidden field for use by javascript but not by the user
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#JSHiddenField or http://A555F9/nn.nsf/ByAlias/JSHiddenField

Create a Field hidden from the web user , but accessible by JavaScript and agents.




On the Notes form make the field editable, but not Hidden to the web.

In the HTML_Attributes property of the field, enter "type=hidden".

The field can then be accessed using javascript:

window.document.forms[0].FIELDNAME.value='yes';

alert(window.document.forms[0].FIELDNAME.value);

The field can also be accessed by an agent using documentcontext.