M
MattO
I have a text field in my form. I want to display the number of characters
in the field directly above it -- this number obviously changes each time the
user types in the field. The character count will be stored as an attribute
of the current node. I've found that when the OnAfterChange event fires for
the text field, and I calculate the number of characters and call
eventObj.Site.setAttribute( "my:length", eventObj.Site.text.length );, the
OnAfterChange event fires again. This repeats until an error message appears
indicating that the maximum number of recursive calls has been made. I
assume I'm just going about this the wrong way. Any suggestions?
in the field directly above it -- this number obviously changes each time the
user types in the field. The character count will be stored as an attribute
of the current node. I've found that when the OnAfterChange event fires for
the text field, and I calculate the number of characters and call
eventObj.Site.setAttribute( "my:length", eventObj.Site.text.length );, the
OnAfterChange event fires again. This repeats until an error message appears
indicating that the maximum number of recursive calls has been made. I
assume I'm just going about this the wrong way. Any suggestions?