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.
Juggernaut

Go to Related Record in Portal with multiple layouts

Featured Replies

Hey all,

Using: Portals, Go to related record, Scripts, If/Else Statements

Background: In a portal... I currently use a script to go to its related record in another window with LayoutA.

Looking to do: I now have multiple layouts that I need to go, depending on Field1.

Details: So if Field1 = "John" I want it to go to LayoutA

If Field2 = "Betty", I want it to go to LayoutB

If Field3 = "George", I want to go to LayoutC

In a regular Script I have dont this and make it go to those layouts with no issue, but I am struggling to do this in a portal. So if anyone has any ideas, please let me know.

Thanks!!

Blake

You need to do this in two steps: first go to related record using any layout of the portal table; then select the layout appropriate for the record's type.

The second step could be called by a OnRecordLoad script trigger - so it would work for "regular" browsing as well.

  • Author

Thank you very much... I hadnt thought of doing that way, but it works. Thank you.

Blake

It's not the only way to do it: you could also calculate the target layout within the GTRR step. But then you would have to do the same thing again for browsing the table.

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.