Append Text to Notes field, including User, Date & Time
Any help on creating this User/Date/TimeStamp this would be much appreciated..
I have the following objects on my page:
Two Text boxes:
- txtNewNote (this is a textarea field to type in the new notes)
- wkRptOrdStaNts (this is the actual Database field where notes are stored)
One Submit button:
- btnAppend (this is to run the Javascript code that takes the content in the txtNewNote box & appends it to the wkRptOrdStaNts field contents, along with a User, Date & Time stamp)
Here is an example of what a final "appended text" entry should look like:
[02/22/2010 1:17 pm by: joe_user] New notes, blah, blah, etc..
I found this javascript code : http://www.mediacollege.com/internet/javascript/form/add-text.html, but not sure how to make it work with date/time/user.
btw: I can pull the logged in user from a Session variable: #Session.kt_login_user#
Thanks,
jlig
