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.

Script step for starting a new text line at the top of a field?

Featured Replies

  • Newbies

I'm stuck on how to configure a script and I know I must be overlooking the obvious...

 

I use FilemakerPro as my CRM in a sales business.  I make notes each time I speak to my clients.  I have a script that will automatically begin a new note with a date/time/contact_method stamp notation in my notes field followed by a space and then the curser for me to begin typing the notes.  Simple so far.  

 

Currently each new note begins below where the last note left off.  

 

What I want to do is script the starting point for each new note to begin at the top of the field so as I add more notes I can always see the most recent notation without having to scroll to the bottom of the field. 

Therefore the notes will be listed in reverse order.   Any thoughts?  

 

Not that it's too relevant but below is the simple script that I'm using now - so if you have any steps that I could insert to begin at the top of the field please let me know.

 

Current Script:

Go to Field (Contact::Notes Client)

Enter Browse Mode []

Insert Current Date [Contacts::Notes Client]

Insert Text [" "] 

Insert Current Time [Contacts::Notes Client]

Insert Text [" "]

Insert Text ["- Phone Call:"]

 

Result is - 7/29/2014  12:10:27 PM: Phone Call: 

 

Thanks in advance for any help.

Try

Set Variable [ $newFirstLine ; Get ( CurrentDate ) & "  " & Get ( CurrentTime ) & " - Phone Call: " ]
Set Field [ Contacts::Notes Client ; List ( $newFirstLine ; Contacts::Notes Client ) ]
Note that you could also use a related table with fields for type, date, time, notes etc., sorted by date – or any other field, for that matter – and create a new, pre-set note record via script.
Get ( CurrentDate ) & " " & Get ( CurrentTime )

=

Get ( CurrentTimestamp )
Get ( CurrentDate ) & " " & Get ( CurrentTime )

=

Get ( CurrentTimestamp )

 

Yes – except for the two blanks …  :smile:

Yes – except for the two blanks …  :smile:

 

What two blanks?

 

 

Insert Current Date [Contacts::Notes Client]

Insert Text [" "] 

Insert Current Time [Contacts::Notes Client]

What two blanks?

 

The two blanks I put into my sample code, being under the false impression that the OP had/wanted two. Forget it …

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.