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.

Extracting Values from Value Lists / Check Boxes

Featured Replies

Hello,

I have a value list of items with checkboxes. I want a script to cycle through that value list and operate individually on each item that is checked. What is the best way to do this?

Thank you.

Evan Cooney

Check boxes are simply a way of entering data into fields, so you work with them in the same way.

eg:

If [checkboxfield = "Yes"]

do this

End If

  • Author

I understand. Then let me try a different question:

If I have a text field with values (seperated by a new line):

BILL

BOB

GEORGE

ALAN

How can I cycle through those values and perform an operation on each entry? Example: Create a new record with each one of those names as a field value.

Thanks

E


* Set a global text field gTempList to the contents of your list

Set Field [gTempList, TheListfield]

* Now loop for each item in the list

loop

* If no more items in list, then we are done

Exit Loop If [Length(Substitute(gTempList,"

  • Author

I plugged in this script and it results in an endless loop.

Put a pause step inside the loop so you can check to see what is happening to the contents of gTempList. Each time through the loop it should have one less item in it. I'm assuming that the items are separated by a line break since that is how valuelist items are normally separated. If not, then you will have to change the delimiter character from "

  • Author

Does it matter that the value is generated from all of another file's values? For example, this value list is composed of all the discIDs from the CoreDisc database. Will this script only work if it is a user defined value list?

Thanks so far.

It shouldn't matter where you get the values from. However, I noticed an error in the script that I posted. It will get into an endless loop if the list doesn't have a line break at the very end. I edited my previous post to correct the error.

Also, I have attached a sample file.

Process.fp5.zip

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.