Lotus Notes FAQ Visit Our Sponsor!

Can you automatically refresh when a keyword field is changed?

From hellerr@msnotes.wustl.edu:

Enable the Database Property "Web access:Use Javascript when generating pages". In your form, place an Action Button with the formula:
This MUST be the FIRST action button, because this trick depends upon its position, which must not change.
Open the form from a browser.
View the Document(Page) source in your browser.
You will see something like this where the first button's code is:
<A HREF="javascript:_doClick('94bb0ce58b790fd086256713005f5721/$ACTIONS/0.1e')">
Copy it to the clipboard.
Now, for each keywords field that you want to refresh on a click (like selecting a radio button or checkbox), paste it into the HTML Attributes so the syntax looks like this:
For fields that need to cause a refresh on change rather than click, change OnClick to say OnChange.
Now you can hide that Action button, but never remove it.

From michael.holmstrom@datavis.se


You can also call

  _doClick('$Refresh', this, '_self', '')

from the onChange event of a web field.

Applies to Notes Versions: 4.6 5
Last Modified: April 23, 2002