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.

Script to change calculation formulas

Featured Replies

Hello everyone

We have a big database including information about father, mother, grandparents and siblings. We use scripts to create fields by calculations.

These calculations are the same for the father, mother, grandparents and so on...except for the referenced fields, which are different:

eg: to create a field 'Sudden_death_father' we use for the father:

If (Position ( quest2::E6 ; "5" ; 1 ; 1); "Yes"; "No")

(In question E6, if people filled in answer 5 then there is sudden death)

For the mother it would be:'Sudden_death_mother'

If (Position ( quest2::E6_2 ; "5" ; 1 ; 1); "Yes"; "No")

For a grandparent:

If (Position ( quest2::E6_3 ; "5" ; 1 ; 1); "Yes"; "No") and so on

Is there a possibility to just make a script which changes the referenced field for the different familymembers?

eg 'Sudden_death_x': If (Position ( quest2::y ; "5" ; 1 ; 1); "Yes"; "No")

Can we make a script like:

if 'x' = father then 'y' in the formula must be E6

if 'x' = mother then 'y' in the formula must be E6_2

It would be easier then copy all of our formulas and make changes manually!It would save us a lot of work if it would be possible.

Hope you can help us

Thanks

From what you have posted, it seems to me like you have a structural issue. You should look into having individual related records.

  • Author

We'll try to look into that!

Thanks

Femca

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.