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.

using a find and then switching layouts

Featured Replies

Hello!

Is it possible to use a find to get a record and then show that record on a new layout?

I am sure this is a dumb question with a simple answer, but I can't get it!!

Thanks Everyone!!

You could set a layout script trigger to run OnRecordLoad, with a script something like:

Set Variable[ $found ; Get( FoundCount ) ]

If( $found = 0 )

  Go to layout( "try again" )

Else If( $found = 1 )

  Go to layout( "detail" )

Else

  Go to layout( "list" )

End If 




Or you may be thinking along the lines of: 




If( user = "manager" )

  Go to layout( "dashboard" )

Else

  Go to layout( "data entry" )

End If 


You could set a layout script trigger to run OnRecordLoad, with a script something like:

Set Variable[ $found ; Get( FoundCount ) ]

If( $found = 0 )

  Go to layout( "try again" )

Else If( $found = 1 )

  Go to layout( "detail" )

Else

  Go to layout( "list" )

End If 




Or you may be thinking along the lines of: 




If( user = "manager" )

  Go to layout( "dashboard" )

Else

  Go to layout( "data entry" )

End If 


You could do that... I think all the poor guys trying to do is this though no?

Perform Find[]

Go to Layout[]

Could be, but even so that requires a script to be run to do the Find. I proposed a script trigger so that after using the standard Find command it would go to a layout.

  • Author

Thanks for your help...

What I really want is to compare two fields..

If (Field A = Field :)

goto layout "student"

Else

Goto layout "orgin"

end

I don't get how to compare the two fields and then goto layout of that certain record...

Maybe right in front of me and I cant get it to work!!!

The script would be pretty much as you've written. Now, if you want to perform an ordinary Find that then invokes the script, go to Layout mode, edit the layout, and click Script Triggers, choose OnRecordLoad and select the script, with the Browse checkbox selected.

If you need more help that's fine but please be a little more specific about what you've tried and what the result was.

  • Author

Thank you for your help....

I'm having troubles!!

I need to have my front page be a sign in page. I was thinking that it could be a simple "find" that i could put in a name and have it find that persons record and switch to a layout named "student"

i don't want to have to set up individule privileges. I will have hundreds or thousands of people doing this... I also have no need for very secure design..

Can i do this? I don't know if i can attach my file or not, but would be willing to.

I am a beginner at filemaker and i am just having a hard time wrapping my brain around this and not even sure if i'm explaining this right!!

Edited by Guest
Removed Shouting.

To attach a file, take a look at this link. Attach File

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.