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.

Conditional valuelists based on repeating field

Featured Replies

How to get this work?

I want a conditional valuelist that is based on the input in a repeating field and takes data from a related file. Sure it works, except for that the valuelist does not update it's condition when moving to next repetition! Simply I have two repeating fields, one with artists and one with tracks. Related files is Artists and Tracks, master file is Albums.

I've taken the Artists into a valuelists. Now when I pick one artist into the Artist field I want the Tracks valuelist to be conditionally based upon the Artist, so only tracks by that artist is shown.

But, as I said the valuelist is only based on the first repetition, how to get it work for next repetition and next and next and next...? crazy.gif

I'm sure there is a way to do this... but I think you should really be using a related database instead of repeating fields.

Conditional value lists are relationship driven - they source the values that are related to the current record.

As such, the whole process is specific to the record and the relationship. One relationship produces one set of related records for one record. The only way to use this system to achieve multiple record groupings within one record is to use multiple relationships. Alternatively, of course, you could achieve a comparable effect by using a relational structure and thus having each grouping relating to a different record.

The issue arises because conditional value lists are a relatively recent innovation which build on FileMaker's relational capabilities, whereas repeating fields are a legacy work-around from the ancient days when FileMaker was not yet relational.

It is possible to use an automatic value list selection process (there's a demo of this available from my web site if you want to investigate it) to achieve lists which are driven by scripts rather than relationships, but I suspect that in this instance, a relational solution would be more elegant.

  • Author

OK

I'll go and check your code if it's a possible to implement, otherwise I'll have to look on the other ways to do it smirk.gif

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.