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.

Go to First Position of a field

Featured Replies

Hi

I have a stamp script that will put a date/time stamp in a field for when comments are added. It works ok, except that I want it to go to the top first posistion in the field before stamping instead of the end.

I looked around a little, and tried a couple of things, but couldn't realize a way to do it (I give myself a C- for effort, though). I was hoping that someone had done this before and had a ready-made calculation, so I can save precious brain cells that haven't already been destroyed by drugs and alcohol! wink.gif

Thanks

Is this a repeating field?

  • Author

Hi:

No, it is a text field. Right now the script goes like this:

Insert Calculated Result [comments, ""

Hi Ken,

I'm assuming you use a 'SetField' step in your script... you probably have it as:

SetField("History","History & ' - 11/17/2003'") to display:

Called John - 11/17/2003

- or -

SetField("History","History & '

Hi Kenneth,

Maybe something like this file shows?

Notes Log by: John Mark Osborne at this URL:

http://www.databasepros.com

HTH

Lee

Create a global text field called gStamp.

Set Field[gStamp, ""

  • Author

Thanks for your guys' replies.

John: I'm feeling you, but this would put the stamp at the top which is good, but it would not put the cursor below the stamp and above the other contents. That DOES solve the problem, sort of.

Lee: I'm glad you pointed me to that site (the flash version of the site put my resources on blast, though). He realized the same problem I did: you cannot position the cursor at the beginning of a field w/text using script steps.

Although I would prefer to use just one field and one script to accomplish this (whoa, that's asking too much), I think this solution works the best because it sorts it by date, and I can tweak it a little.

Thanks again guys,

Ken

But why not use the TextField itself.

SetField[TextField, & "________________________" & "

  • Author

Hi Ugo:

You are right - there is no need for Insert Calc Result here, but there is no need not to either. I just wanted something that would put that info in the field and not clear the current contents (the way set field would).

I appreciate your suggestion, but this does not put the cursor after the stamp and before the text thats already in that field. I am going to stick with Osbourne's sample that Lee gave.

Thanks all

Ken

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.