Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7227 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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 &

  • 2 weeks later...
Posted

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

  • 1 month later...
Posted

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!!!

This topic is 7227 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.