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.

Radio Button Calc

Featured Replies

I have a Portal containing a Checkbox with the value of "Paid"
When "Paid" is selected how do I get it to add a set amount, say 20, to a field called "Total" outside the Portal?
Also when un-selected it needs to remove the same amount from the "Total" field.

With Thanks

Mick

Not sure it's ideal without more details

On the child table create a field:

Paid Amount = Case ( child::checkbox = "paid" ; 20 ; ""  ) 

Then in the parent table create a field:

Total Paid = Sum ( child::Paid Amount ) 

 

12 hours ago, Mickdn said:

When "Paid" is selected how do I get it to add a set amount, say 20, to a field called "Total" outside the Portal?

I'd suggest you rethink your strategy here, because prices, fees, etc. change as time goes by - and you don't want future changes to affect existing records.

Ask yourself instead: how do I auto-enter the currently charged amount into a field in the child table - either upon creation, or upon recording the actual payment?

  • Author

Thanks for the replies, I've attached a file which should explain it in more detail.

The amount will never really change, it's just a small database for a collection of mates that want to track what they pay into a syndicate.

Thanks again.

File.zip

24 minutes ago, Mickdn said:

The amount will never really change

Famous last words ...  But if you are sure about that, you can use a calculation field (defined in the parent table) =

Count ( Child::Paid ) * 20

to calculate the total amount paid.

This assumes the Paid field will be empty if not checked. Your title speaks of a radio button, but your question speaks of a checkbox - that's kind of confusing.

 

Edited by comment

  • Author

Works great, so sorry for the Checkbox, Radio Button mix up.

Many 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.