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.

How to go layout if last character of find number is 2?

Featured Replies

Hello ,

I would like to know how to set my script to go to specific layout if the last character of the field that im searching is 2?

example:

if im searching for " 2245-2" ... go to layout "2"

if im searching for " 4587-3" .... go to layout " 3"

hope you understand,

thanks for your help.

mauricio

If[Right(YourSearchField;1) = 2

Go to Layout("2")

Else If (Right(YourSearchField; 1) = 3

Go to Layout"3")

End If

Your best bet is to use onRecordLoad script trigger to run a script that changes to the layout whenever the record changes (in browse mode). The script would be what doughemi posted above.

Then, whenever the records are viewed the correct layout will be displayed *as you browse through them* automatically. This includes as they are viewed after a find.

Having said that, why need separate layouts for something like this?

You can also just use one script step in the OnRecordLoad trigger attached to the layout of:

Go To Layout [ by calculation ; Right ( yourSearchField ; 1 )

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.