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.

Trouble with Open File - Go to Layout Number script

Featured Replies

Hi, all:

The title pretty much sums-up the problem: I want to create an FMP 'shortcut' so a user can automatically go to a specific layout in an FMP file on the server, then the shortcut closes; I just can't get the syntax correct in the script.

What I have so far is:

Open File ["Student Records"]

Go to Layout [196]

...where 196 is the layout number of the form I've created.

What am I missing so that the user goes to Layout #196? As of now, the file opens just fine but after that, nada--FMP and I just exchange dumb looks at each other. (I have a sneaky suspicion it knows who the real dummy is here.)

TIA for your help!

In your Student Records file, go under file options. There will be a place to change your opening layout.

Heya do you mean a separate "opener" or "starter" file that would live on your users desktop or wherever which does the Open Remote faff for you?

If so...

Opener file has one script which does the following;

Open File ["Student Records"]

Close File

Change file options on this opener file so that it runs this script upon open. Next write a script in Student Records called Open/Start or whatever you fancy which goes to your layout.

Then set this script to call upon open of the file... File Options in the File menu

This way the opener file does its job, then gets out the way and then the open script will trigger on Student Records and navigate to your layout!

Hope that helps!

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.