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.

Featured Replies

  • Newbies

I have a layout with 200 buttons numbered 1 thru 200. I want filemaker to make a new record each time I click a button with the number of that button. For instance, if I click on button 120 it will make a record with 120 in it. After I'm done, it will tally the top ten buttons clicked. It is used for a contest and using buttons is much easier than hand typing each number voted on.

However, there has to be an easier way than to make a script for each button. I tried status (currentfieldname), but then I have to make 200 fields. I even tried to do a field serialized. I'm pulling my hair out. I did see a post once on how to do a "text on button" script but can't find it now. Otherwise this script works fine.

----for each button ----

New Record/Request

Insert Text[select,"vote",100"]

Refresh Window[]

-------------------------

As is now, everything works like I want, I just don't want to do a script for each button frown.gif

[ February 05, 2002, 12:15 PM: Message edited by: jgreen ]

You could use some portals and reduce the number of scripts to one per portal.

Another approach is easier to setup, requires one script, and two clicks per number.

May I suggest that you look at the Help topic Status Functions and especially Status(Current Field Contents). This works across different files so that the value of a field you have clicked into can be carried across to a field in another file.

Say you have 200 number fields containing the values 1-200, if you click into any of these, then run a Perform external script step, the value therein will be contained in the function Status(CurrentFieldContents)in the external script.

So,you will have only two scripts; one external script and one to 'Perform External Script'

The value carried over will vary according to which of the number fields is active.

Actually buttoning the scripts could be a bit tricky but I think it can be done.

May I suggest that you look at the Help topic Status Functions and especially Status(Current Field Contents). This works across different files so that the value of a field you have clicked into can be carried across to a field in another file.

Say you have 200 number fields containing the values 1-200, if you click into any of these, then run a Perform external script step, the value therein will be contained in the function Status(CurrentFieldContents)in the external script.

So,you will have only two scripts; one external script and one to 'Perform External Script'

The value carried over will vary according to which of the number fields is active.

Actually buttoning the scripts could be a bit tricky but I think it can be done.

Sorry,I seem to have posted twice

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.