December 7, 200421 yr I'm trying to create a field my workgroup can use as a "commentary" field - where we post our comments to each other. I'm trying to get a script to enter the current user name into the field above the current contents of the field, to make it look something like this: -------------------------- Username: PreviousUsername: Comment -------------------------- I've been trying to copy the contents of the field, then paste in the current username, then paste the previous contents of the field into it. The only problem with that, is the cursor is at the end of the field when the script completes, and I'd like it to be after the new username it entered at the top of the field. Thanks for any help you could send my way. Todd
December 7, 200421 yr It's better to use a global to hold the new comments and set the field with the global and previous comments afterward, so that no users have access to tweak previous comments, even accidentally. Once a comment is entered into a global, have a submit button attached to a script to Set Field [commentary; Get(UserName) & ":" & globalcomment &
December 20, 200421 yr Author Hi, thanks for the info, and sorry to take so long to get back to you with more questions. I'm a really new user, so I don't understand anything bug the real basic scripting stuff - e.g. go to this field, paste, etc. I'm not concerned about users being able to change existing text in the field. I really only need it to paste their username at the top of the field, add a couple carriage returns below it, and hopefully put the cursor into the field after their name so they can start typing their comments. Is there a simple way to insert the username at the top of a field, pushing the previous contents down under it? Thanks, Schomer
February 12, 200521 yr Author Again, sorry for the delayed reply. I finally got out from under a couple huge projects and got back here. Your explanation worked perfectly. I really appreciate you taking the time to explain it in such a way that I would understand it. Thanks for helping me out like this!!!
Create an account or sign in to comment