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.

Calculated value for a field

Featured Replies

I want to calculate the value of my non resident fee field. If the student is a resident, the fee should be 0, if he is a non resident, it should be the non resident fee for the class.

I do it like this:

NonResidentFee = If(Student::Resident = "yes",0,Classes :: NonResidentFee) where classes is the name of a relationship between Student and Classes. Student is the current file.

This does not return anything, but if I put the same line in a script using SetField and create a button that performs the script, it works fine when I click the button.

Can someone help me here, what am I doing wrong with the calculated field?

Thank you

In Define Fields, try unchecking the box that says "do not calculate if all fields are empty".

-bd

  • Author

Thanks but that did not do it.

Any other ideas?

Check your calculation again.You show the field in the current file as"Student::Resident. The "::" suggests you have selected a related file,not the current file. It should just read If(Resident="yes" etc.

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.