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.

Combine Fields

Featured Replies

  • Newbies

Hi All,

I am new to filemaker and Scripting. Could someone possibly tell me the script i need to combine the text from three separate text fields and insert it into a fourth text field with each result on a new line.

Many Thanks

Giles

Set variable [$one;firstfield]

Set variable [$two;secondfield]

Set variable [$three;thirdfield]

Set field [fourthfield; $one & ¶ & $two & ¶ & $three]

Are yoy sure that you need a script ?

Because you could obtain the same result with a calculation field ( or an auto-enter calculation on a normal text field ) using simple the List ( ) function, something like:

List ( Field1 ; Field2 ; Field3 )

I prefer the list function:

Set variable [$one;firstfield]

Set variable [$two;secondfield]

Set variable [$three;thirdfield]

Set field [fourthfield; List( $one ; $two ; $three) ]

Why?

Try your script with an empty field2

Why not simply:

Set field [ Field4 ; List ( Field1 ; Field2 ; Field3 ) ]

That's assuming a script is required at all.

  • Author
  • Newbies

Hey Danielle,

You were right I wanted a calculation not a script.

Thanks very much for your help

Giles

  • Author
  • Newbies

Hi all,

Thanks for your help.

One other query I had would be:

Say I have a 5 fields I want a seperate field to tell me how many of the 5 have been filled in with text, is there a calculation i could do for that??

Thanks Again

Giles

Try =

Count ( Field1 ; Field2 ; Field3 ; Field4 ; Field5 )

  • Author
  • Newbies

You've all been a great help, I'm all sorted.

Thanks very much for your time

Giles

Edited by Guest

Why not simply:

Set field [ Field4 ; List ( Field1 ; Field2 ; Field3 ) ]

That's assuming a script is required at all.

I was just going along with the original format; and sometimes using variables in a script allows for easier debugging. But of course your suggestion works fine and I agree completely that it's a valid and simpler solution.

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.