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.

Script for New layout with Get(ScriptParameter)

Featured Replies

I want to use a script to open a different layout in a new window, and I want to define the layout using a script parameter. I can't seem to get it to work.

If I do the following:

New Window

Go to Layout(Layoutname)

It works fine.

If I simply want to go to a new layout using a script parameter, I can do:

Go to Layout(Get(ScriptParameter))

But, if I do:

New Window

Go to Layout(Get(ScriptParameter))

It doesn't switch the new window to the different layout.

Obviously, I'd like to be able to use a script parameter so I don't have to write a new script for every window I want to open.

Anybody have any ideas about what gives? Is this a bug, or am I missing something here.

Thanks for any and all advice.

I have used a similar scripting for layout navigation and have had no problem. I made a copy of my script and then pared it down to your final script and it worked perfectly. I know this may sound silly but are you sure that you have spelled the layout name correctly in the script parameter.

Incidentally if you do get it working do take account of closing the windows as well as opening them.

  • Author

No spelling errors at all. I can't figure it out, and it's driving me batty!

Could it be an OSX-only bug?

  • Author

Wait a minute. I just tried it again, and now it works. Hmmmm....

(Just in case you are wondering, it was the same script as yesterday, so no, I didn't have any spelling errors!)

:

Hmmm....I shut down and re-started since yesterday....was that the solution? That's decidedly odd.....

Well, if I ever get some time, I'll try tracking it down and post the results.

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.