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 know it's been asked several times and I have read all the threads I could find, but heres my question. I have a field named DOB "date of birth" and I have another field named Age when I enter the DOB I want the age to calculate and fill in automatically. From what i have read you need to create a custom function which I have seen several on here. And I understand how and where to create it

but what I don't understand is how to apply it to my fields that I want calculated. If anyone could point

me in the right direction it would help allot.

It depends on what you will be using the field for. If you just want to display it, make a calulation field(unstored). If you want to do finds on it will be slow(it will work but the bigger the table the worse it gets), relationships based on it would not work. If you need indexing(used for finds and relationships), you can "somehow" trigger a script to update the value daily. There are many ways to do this. (can you run a script like this in Server9? I havn't looked hard at that feature yet.) I've many thoughts on the "somehow" but there are many more qualified than me to give advice on that.

Edited by Guest

Two days ago, this topic was posted Here in the Calculation Topic.

Follow the leads to the other existing topics too.

Lee

  • Author
  • Newbies

I understand a custom function has to be made and I have no problem making it. The problem i have is using it. In one field I want to enter the birth date in another I want the age to show years old. I have tried making a script and specifying the custom function but all I come up with is a ?.

No, you do NOT need a Custom Function for this. Just put the calculation in Field.

BTW, most CF calculations can be used in a normal Calculation Field.

Lee

Only functions that rely on recursion *need* to be custom functions.

  • Author
  • Newbies

Thanks for all the help. I did away with the custom function idea and found the the right script and got it to work.

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.