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.

Adding an audio file to a button

Featured Replies

I would like to add a sound file to a button to give the user better feedback that the button has been clicked. I can't find a script command to do this though. Any ideas how it might be done?

I always just use the "Beep" script step (usually for when a dialog box pops up, not for just clicking a button, but it can be used for anything in a script). I suppose you could also try launching an audio file from the "Send Event" script step, but it'll probably open the program that plays the sound, even with system files. Or maybe someone will have a better suggestion!

I can think of a couple ways. The first and easiest is to embed a sound file in a FileMaker container field. Script steps:

Go To Field [ sound in container; select/perform ]

Commit Record

Will play the sound. But the field must be on the layout, though it can be made 1x1 pixel, and non-enterable.

Another method, more involved, is to download this small Unix command line app:

http://www.hieper.nl/html/play.html

Once placed properly, it can be called by AppleScript, via do shell script, to play any external sound file whose format is supported by the system. Kind of overkill for a "click" though.

Edited by Guest

  • Author

Hey, thanks for that, it worked a treat and you don't even need the Commit step, just GoToField and perform the Quicktime file. I downloaded one from Flash and it really makes a difference to hear a proper click when you press the button.

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.