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.

Setting a variable with a script parameter

Featured Replies

I don't get why this script isn't working. Is there a better way?

Set Variable [$scriptP;Value:Get(ScriptParameter)]

I have several buttons that would use the same script other than a value unique to the button so I am trying to modularize my scripts and use a script parameter instead.

It should be working the way you have it. It's also totally redundant, since the script parameter is a variable too, and it's available directly throughout the entire scope of the script.

  • Author

Thanks comment,

You're right, it is redundant. Maybe that's why it didn't take.

Instead I just set a temp field with the script parameter directly and it works fine.

Maybe that's why it didn't take.

No, it should still work. How have you determined that it's not?

And what's the point of setting a field to the same value? IOW, what exactly are you trying to do?

There is a point to what you are doing - if you use a $$variable.

$$variables can be carried through to other scripts without needing to pass them as a subsequent ScriptParameter.

Edited by Guest

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.