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.

Button on a Field

Featured Replies

  • Newbies

I am working on a FileMaker solution and have come upon a snag. I have a screen that consists of many fields from a related file. I want to be able to mouse click on a field, automatically select the contents of that field, and have those contents set into a separate field.

I have made each of these fields a button, but have not found a way to accomplish this goal. FileMaker does not select the field that the button is associated with, so instead any implemented functions use whatever field the cursor is in. There are many fields so I do not want to have a separate script for each field.

How can I select a field and have a button on it at the same time? Please advise. Thanks.

It sounds like you will need a separate script for each field. It's a weakness of FileMaker that it doesn't keep track of buttons that way.

I've never done this, but why not use the Status(CurrentFieldName) into a script.

Set global (your field value)

Goto Field (global)

Perform your calc over the global...

or some Get field functions may help here

  • Author
  • Newbies

I tried this, but since the field is also the button, FileMaker uses the last field I was on instead of selecting the new field. It seems that you can't select a field that is also a button.

OK,

So Bob posted a solution while I was looking for mine. I really doubt it couldn't adress your problem.

Just in case it doesn't, here's a quick demo of what I would do.

It involves relationship with a selfjoin On Record ID. The field is in a one row portal, with a button :

Goto first row

Set Field (global,status(CurrentFieldName))

This way you can capure the status(CurrentFieldName)

I used the Get Field function afterwards, but you could use the global for your calc.

Fieldbuttons.fp5.zip

Hey Bob, this was close smile.gif

Thanks for the sample.

Bob,

I played a little on your files, then made some more tests on my suggestions. They are in fact 2 different approaches in my opinion...even if they both use "portal tricks".

Would you mind giving an eye to the test I've posted and stricke its limitations.

Thanks.

  • Author
  • Newbies

Thanks! I'll give it a shot.

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.