When Notes wants to save the data from the applet, it runs the
_getEditAppletData() (spelling?) javascript function, which takes the output of
all RT applets on the form and updates the value of the field it's being
substituted for.
Whenever you need to check the value of the field, run the same function.
Another problem with the applet is that onChange events are not recognised. To
get round this, I defined my own event handlers for the focus() and blur()
events (which are recognised). The new handlers simply store the value on entry
(focus) and compare with the value on exit (blur). Because one object blurs
before the other is focused, this works satisfactorily (code avail. on req.)
When Notes wants to save the data from the applet, it runs the _getEditAppletData() (spelling?) javascript function, which takes the output of all RT applets on the form and updates the value of the field it's being substituted for.
Whenever you need to check the value of the field, run the same function.
Another problem with the applet is that onChange events are not recognised. To get round this, I defined my own event handlers for the focus() and blur() events (which are recognised). The new handlers simply store the value on entry (focus) and compare with the value on exit (blur). Because one object blurs before the other is focused, this works satisfactorily (code avail. on req.)