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.

Picking a value from a value list

Featured Replies

Hi guys,

Im sure there must be a calculation for this, but I have a value list which contains

A

B

C

D

I want to create a field that picks the second value, i.e B from the value list. Can anyone help please?

Thanks

Jalz

Have your value list be a repeating global field. Then use the GetRepetition command.

That's one way. It's kinda kludgy.

The other alternative? Use the "SetField" command to put a specific value into the field, rather than choosing from a value list.

You can extract text from a field using this function:

Middle (text, start, size)

You can extract text from value lists with this function:

ValueListItems (dbname, valuelist)

E.g.: ValueListItems(Status(CurrentFileName), "abc")

E.g.: Middle (ValueListItems(Status(CurrentFileName), "abc"), start, size)

Each value in a value list is separated by a carriage return. The second value in the list starts 1 character after the first return, and ends 1 character before the second return.

You can find where the carriage returns occur with this function:

Position (text, search

  • Author

Thanks Guys,

Fitch's solution worked perfectly for me.

  • 3 months later...
  • Newbies

I needed to extract:

[email protected]

from

Joseph Sample <[email protected]>

This seemed to work:

Middle

(Contact Name_Email Address,

Position(Contact Name_Email Address, "<", 1, 1) + 1,

Position(Contact Name_Email Address, ">", 1, 1) - Position(Contact Name_Email Address, "<", 1, 1) - 1)

I modified your formula to my needs. Thanks for your help!

Hi,

Here's an alternative, adapted from a post by Ray (CobaltSky) sometime ago.

Substitute(MiddleWords(Substitute(Substitute(Contact Name_Email Address, " <"," <"& "

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.