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 help changing portal row fields

Featured Replies

Hi,

Been struggling with this for a few hours now.

I have a portal on my layout and one field is a Yes / No field, at some point I need the user to be able to change the yes/no field in the portal to a “Yes” answer in all the portal rows which show up for that record..

I have tried the setfield script but it only changes the first portal row field to “Yes”

Is there a way to change the yes/no field in all the portal rows for a particular record at one time.

Thanks,

James

There is no simple way, all methods will require a script.

The script needs to use the Go to Related Record (GTRR) step to "find" the portal records in their table, then loop through the found set of related records and use the Set Field step to enter the "Yes". Then return to the original layout.

Go to Related Records [ relationship ; layout ]

Go to Record/Request [ first ]

Loop

Set Field [ field ; "yes" ]

Commit Record/Request [ no dialog ; no validation ]

Go to Record/Request [ next ; exit after last ]

End Loop

Go to Layout [ original layout ]

Refresh Window [ fluch cached join results ]

The Replace [] step can be used in place of the Looped Set Field.

  • Author

Thanks,

I will give it a try this afternoon.

James

Be careful when using the replace function as it requires that field to be on the layout, it's all too easy to "tidy" a layout at some point in the future and remove the field thereby breaking the script. For this reason I tend to use the looped set field.

Edited by Guest

Replace does NOT require the field to be on the layout. It did in FileMaker 6 and earlier.

Thanks Bruce, every day's a school day.

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.