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.

Field as Button Problem

Featured Replies

I've created a container field and attached a button to this field. When I click on the button it activates a script.

The first item in the script is to set field [a text field] Get(activefieldname).

When you click on the field button it does not recognize this as the active field.

I have a work-around by having the field button perform set field and manually entering the data. I have another button which activates the remaining parts of the script.

Is there a way to get around the two step process?

If the button is attached to a field, then the name of that field is known in advance. So you can put that name into a script parameter and use that instead.

  • Author

If I follow this would work but I would need a different script for each field. My objective is to have one script work for any field that it is attached to.

I've attached a sample file. Across the top are 3 fields if you select one of the fields and click Display Name, the Name of that field will be displayed.

If you click on the Blue or Green Fields with the "Display Name" Script Attached nothing happens. Filemaker does not recognize the attached field as the active field.

Button_Test.fp7.zip

As Comment said, if you know the name of the field in advance, you can pass the name as a Script Parameter to one central script.

When you specify the button, you can choose to enter an Optional Script Parameter. Then in your script 'Display Name', use the Get (ScriptParameter) function.

The reason why you cant use the Get ( ActiveFieldName ) function is because when you click on the button, you are technically not activating the field since you never enter the field but rather are clicking on it as a button.

  • Author

Guess this falls under the category "RTFM" : What a time saver.

Thanks

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.