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.

Button To Get Value From Portal Row

Featured Replies

Sorry, new to FMP 9. I have a portal with multiple rows. I need a button/script that will copy a value from a field in portal row X, by clicking on a button IN THE SAME ROW.

I guess the problem is that clicking the button in a specific row of a portal does not first select that specific portal row (related record) for the copy/set field whatever command.

Thank you.

Not true. A button on a portal row does in fact "know" what row you clicked -- until you do something to take you out of the row such as commit the parent record in your script.

E.g., assuming your button is running a script, and not just a Copy command, try setting the portal field you want to grab as the script parameter.

If you show me more of your script I could advise you where it's going wrong.

  • Author

Thank you for responding. I just want to navigate to that particular portal row record by clicking a button in that portal row. "Go To Related Record" doesn't work. If I copy the Rec ID from that record and do a find for it (outside the portal), that obviously works. I was trying to script that.

Peter

It should work the way you describe, so check your implementation. Most common causes of problems are specifying the wrong table occurrence to go to, or leaving the portal row too soon (as Tom explained).

  • Author

Thanks!!! Wrong TO.

Peter

  • 6 years later...

Most common causes of problems are specifying the wrong table occurrence to go to, or leaving the portal row too soon (as Tom explained).

​Thank you.

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.