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.

Default Script Parameter

Featured Replies

I would like to enter a default "Optional Script Parameter" to my scripts, so that i do not have to search for another instance of the script parameter every time i implement it especially those that have a large number of variables.

Can you explain what you mean?

  • Author

Hi Comment,

I find myself more and more using ScriptParameters.

Some of the script Parameters rely heavily on specific variables being set for the script to work.

If the script itself had a default / auto-entry script parameter when i create a button or add a subscript the default script parameter could automatically be added. Then i can modify it to fit or leave it when required.

This would allow me to make a Let ( [ var1=""; var2=""; var3=""] ; result ) template for these scripts rather than having to find another button or subscript instance.

Would just make adding a dynamic script quicker.

best

Stuart

I think what Stuart means is being able to find what parameter is needed for a script without looking for a layout button or another previous call of that script.

I do this by adding a comment™ in the script with a sample parameter. Since FileMaker 9 and the fact that you can open multiple script windows at the same time, it is a snap to open the script (or subscript) you want to perform, open the comment line, copy its content, and paste it in the parameter calculation.

More, all my script parameters are structured in an xml-like way, making it easy to declare named variables with a single custom function.

Edited by Guest

  • Author

Interesting point i am 8.5

Although many of my dynamic scripts are not nested. (not subscripts but buttons).

Edited by Guest

I agree, it's a good standard practice to include a comment at the top of every script with expected parameters. Also good to comment the last modified date, context, etc.

Interesting idea though, Stuart. It would be really cool if I could define a script's parameters within the script, and then when I call the script, select the parameters from a popup list -- but still be able to override if needed.

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.