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.

1-10 labeled buttons to add value to one field

Featured Replies

Hi Guys,

I need to have one field add up numbers given to it by 10 buttons valued and labeled from 1-10.

So if someone pushes the 10 button the field will show 10, if again 20, if pushing4

now it would show 24 as a total.

Currently I have 10 fields that by the user clicking on button enters the value into its

own field, and than the total field that is a calculation field with:

ScoreTotal10 = Score1 + Score2, etc.

Which adds up all of the values for a total of 55 but does not add anymore if someone

decides to hit the 10 again

I think by this question that you can see I'm still struggling with FMP 11

so any thoughts would be appreciated.

Thanks

*Sorry I should add that the end result will be used in Filemaker Go (presently 11) 12

When I see your script idea (Set Field [ YourTable::ScoreTotal ; YourTable::ScoreTotal + Get ( ScriptParameter )it makes me feel that I should lower my Skill Level down a couple of notches. I'm sorry to say I need a more step-by-step example not sure where to start with it.

In terms of any mistake by the user I will probably have a button to clear the field to start over.

You could use a script that does:

Set Field [ YourTable::ScoreTotal ; YourTable::ScoreTotal + Get ( ScriptParameter )

then assign the buttons to run this script with corresponding parameter for each button.

You didn't say what this will be used for; usually, one would like to keep some sort of trail - in case of pressing a button by mistake.

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.