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.

getting a field repetition's value by clicking

Featured Replies

I'm trying to get a field repetition value (actually setting another field based on that value) when a user clicks on a line (repetition) of a field, but have not figured this one out. It seems when I make a (repeating) field a button, there is no way to determine what line (repetition) the user clicked on. Am I missing anything? Thanks.

Ken

Try individual button sover each repetition. The scripts for each of the buttons can then be specific to the repetition.

Hi

you need no other button ...

since [color:red]each repetition can be a button !

Neither need a script for each button !

Try the simple example :

Reps.zip

  • Author

Danielle,

Thanks, that is just what I needed! I had never made multiple instances of a repeating field before, very useful. And I agree about using repeating fields only as a tool.

ciao,

Ken

p.s. Thanks also to Idealdata for the post.

btw, what I'm doing (in OS X) is creating a file that shows all the open (and visible) files, using AppleScript, so I can click on the filename and go there. I know, only marginally better than using the Window menu directly. I haven't done all the fine touches yet (checking for errors; dealing with different #'s of menu items before the file names, etc.), but here is the script I'm using so far:

tell application "FileMaker Pro Advanced"

activate

-- Hopefully the first FM file menu item

set h to name of menu item 11 of menu "Window"

set repetition 1 of field "g_visible_windows" to h

repeat with i from 12 to (the number of menu items of menu "Window")

-- Get list of names of all visible FM files

set repetition (i - 10) of field "g_visible_windows" to name of menu item (i) of menu "Window"

end repeat

end tell

Hi, Ken

remember that repeating fields are only a tools !

Don't use them for data !

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.