Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Paste text in front of current field contents

Featured Replies

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

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...
  • 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

Though I wouldn't recommend it,

Set Field [commentary; Get(UserName) & ":

  • 1 month later...
  • 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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.