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.

Scripted insert of data at specific position in another field

Featured Replies

  • Newbies

Hi,

I have looked through as many posts as I could, and googled my self to death...

I am trying to insert some calculated text in to a specific point in to another field. For example - I click in a text field containing a letter and edit the information. Then I want to click on a button to insert some text from a portal exactly where the cursor was.

I have tried 'Insert Calculated Result', but this only wants to insert the data at the end of the field. How can I pass the correct position to the script?

By the way...this is a great forum and my first post.

Thanks!

Unfortunatley, you're going to run into problems with that -- as soon as you click a button in a portal the main record is commited... or you leave the field (i forget).. Either way, the point is you immediately lose the position of the cursor which you could normally get using:

Get ( ActiveSelectionStart )

If say call the field "myField" and the data you wish to insert: theInsert as the string ...then do it this way:

Set[untitled::myField;Replace ( Untitled::myField ; 4 ; 0 ; "theInsert" )

...and you're not bound to have it shown in the present layout.

Read up on it's use here:

http://www.filemaker.com/help/FunctionsRef-373.html

--sd

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.