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.

Go To Field X

Featured Replies

Goal: click on a field (a field designated as a button) and copy its contents to the clipboard.

Technique: for efficiency and simplicity, use a single script that is called by any designated field.

Problem: How to pass the name of the "target" field that is clicked without hardcoding a script parameter for each and every field? The field is not actually entered so you cannot use get(ActiveFieldName), and neither the Copy nor Go To Field... scriptsteps allow you to calculate a target field anyway - the field must be hardcoded.

Am I missing something obvious? Is there no way in Filemaker to just pass the name of the clicked object, such as HyperCard's "get the name of the target and put it into fieldName" followed by "go to field fieldName"?

Make a calculated field set to Get (ActiveFieldName).

Just a comment... programming shouldn't include the clipboard - since the user might have something important hidden there!!!!!!!!!

--sd

  • Author

Errrr...not sure how I would use a calculated field. Since "Allow user to Enter Field" is OFF in browse (protecting the data), the field is not active, even if clicked on...which is why I want the field to be a button which then triggers the COPY script.

Even if I can identify the field, the Go To Field... script step does not seem to allow calculated field names - only hardcoded names, which means a seperate script or script parameter for every field.

There must be a more efficient way!

  • Author

Programming shouldn't included the clipboard??

The WHOLE POINT in this case IS to copy the field contents to the clipboard so that the user can then paste the specific info into other apps/docs. Since the fields are not enterable in browse mode, there is no way to copy their contents if the user needs to...which kinda sux. And hardcoding a script or parameter for each field seems a bit...silly.

And hardcoding a script or parameter for each field seems a bit...silly.

Why is it silly to make a parameter when defining the button ...the script would/could be shared anyway. I think I would use GetField ( Get ( ScriptParameter ) ) to set a global field which then are copied to the clipboard from a layout where copy access is only for this field.

--sd

  • Author

Thanx S

me field names can be long and descriptive!

There is a solution to this as well - In the parameter calc stuff this:

MiddleValues ( FieldNames ( Get ( FileName ) ; Get ( LayoutName ) ) ; 4 ; 1 )

...which in this case plucks the 4th field! All it then takes is just to alter the numbers accordingly!

Nor can the global be located on the layout because it will highlight when its entered programatically for the Copy script step.

In the scriptsteps switch to this utility layout just for this purpose and switch back again when the deed is done!

--sd

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.