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.

need calculated multi-line key field

Featured Replies

How would I do the following (if possible):

I have a text field foo with a string of numbers that are implicitly grouped in chunks of 12 characters. I would like to construct a multi-line key field from this data.

For example:

---

123456789012123456789012...

---

becomes

---

123456789012

123456789012

...

---

Can I do this with a calc field? If so, how? I'm stumped.. frown.gif

I am not sure I fully understand what you are wanting, but here is a calculation that may help get you started.

Left(Foo, 12) & "

  • Author

Thanks for the reply.

My text field can contain an arbitrary amount of grouped "chunks" - only the amount of characters per chunk is fixed (at 12). I'm not sure I can use a calc field unless I pick a sufficiently large max chunks number and have an insanely long calc field definition..

Define as many "Chunks" of size 12s that you need, just keep adding to the end of the calculation like this.

Left(Foo, 12) & "

A looping script could process the field completely.

Be aware that FMP has a 64k limit on text fields.

  • Author

I believe that a script will work better.

I'm working on records of text data that should never (individually) be bigger than 64k, and I'm only working with a subset of that record's data.

Okay, use a script

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.