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

Featured Replies

Guys,

I'm trying to put a field on my layout that is supposed to hold notes. I have a button on the layout that says: "Add comment". When a user hits that button, I want to insert text into the note field on top, with the current username, the date, and a ": ". Then the person should be able to type whatever he wants in there. My problem is that when I use the "insert" script text, the whole note field gets replaced. I guess my question is, how should I go about doing this? How do I avoid replacing text, and how do I make sure the text is inserted *before* all the other text that may already exist? Any ideas?

Thanks!

Try using:

Set Field["Notes", UserName & " " & Status(CurrentDate) & ": <CR>" & Notes]

where <CR> is the carriage return character. This will add the username and date at the beginning of the notes field, followed by existing notes on the second line. However, I don't believe this will preserve text formatting in the existing notes. You may want to experiment with cut and paste in that case.

Hi,

Bradm98's post will almost work but the date will not be displayed correctly as our notes field will be formatted as text and so will not recognise Status(CurrentDate) correctly without converting it to text.

Try this:

SetField["TextField", Status( CurrentUserName) & " " & DateToText( Status( CurrentDate) ) & " : " & "

  • Author

Thanks guys! You rock!

Create an account or sign in to comment

Important Information

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

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.