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 Pass a script parameter?

Featured Replies

Hi all

Trying to learn something and I am proving that I am a slow learning. I have read so many times of this forums about the script parameter function and I am trying to understand how it works. I have read and reread the FM help file a dozen times and I do not understand how to pass a parameter to a script. I have included a sample file of what I am trying to do. I have attach the script to the four buttom on the sample file and want to go to the layout as noted on the button. Could someone lead me in the right direction of how this is done.

Tanks in advance

Lionel

script_parameter.zip

When you are selecting a script (specify script) for your button or calling a subscript, there is an option on the bottom of the window to specify a script parameter.

  • Author

John

I thanks for the information but I have one more question. How do you connect the same script to four differnet buttom to go to four different layouts?

Lionel

If your layouts were named:

Layout_1

Layout_2

Layout_3

Layout_4

Ex. Script

If[Get(ScriptParameter) = "Layout_1"]

....Go To Layout["Layout_1"]

End If

If[Get(ScriptParameter) = "Layout_2"]

....Go To Layout["Layout_2"]

End If

If[Get(ScriptParameter) = "Layout_3"]

....Go To Layout["Layout_3"]

End If

etc...

For each button you would put the appropraite layout number in the Script Parameter box (ex. "Layout_1" quotes included). The script parameters do not have to match the layout name but it makes it easier when you need to interpret the script.

  • Author

Thanks John

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.