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.

Help with Scripts

Featured Replies

  • Newbies

I'm new to FileMaker and am trying to create a script that allows me to download a pdf file. I want to match the AD ID with the appropriate pdf of the ID and then using a button to download the file. Any help would be appreciated since I'm not even sure where to begin. I've tried a few things so far, but none of them have seemed to work.

Is there a way to declare variables in Scripts inside FileMaker? I would need to do this because the AD ID changes with each record.

Thank you in advance!

Hi, Jackie, and welcome to FM Forums! There's no way to pass the data from a field to an Import script step. The only two options i can think of:

1. Prompt the user with the data from the field, show the message "Please select this file for import," and then when the user clicks Continue they can select the appropriately-named file. You can do this by not specifying a file name in your Import script step. This method obviously leaves much to be desired.

2. The way i would do it depends on a Filemaker plugin. It's possible there are free ones to do this, but i'm not aware of any. One that you could buy comes from a company called Troi Automatisering, and it is called the Troi File plugin. If you're developing this database for other users and not just yourself, i would highly recommend it. You can get info about the plugin at Troi's website.

Jerry

  • Author
  • Newbies

Thanks Jerry! I will definitely check that option out and visit the website you listed.

Jackie

If all you need to do is have FMP open the PDF that is related to the record the user is on, it can be easily done with the

  • Author
  • Newbies

Baloo,

That's exactly what I'm trying to accomplish. Yes, all the pdfs follow the same naming convention and all reside in the same folder. I will give this a try also! Thanks a bunch!

Jackie

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.