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.

Count up from field to field

Featured Replies

  • Newbies

hi,

I have two fields 'fld1', 'fld2'. Both fields are a popup menu and can contain one of the following the values:

0,1,2,3,4,5,6,7,8

I have a third field that needs to contain the start value, all the values in between and then the end value.

ie if 'fld1'=2 and 'fld2'=6

then fld3= 2,3,4,5,6

(with or without commas)

I have tried to create a series of calculations, but I am stumped. Does anyone have a solution. It could be a script if it has to be, but it would be better as a calculation if possible.

Thanks

Assuming you have validated that fld1 is no bigger than fld2. Then

set up fld3 as an unstored calculation:

MiddleWords( "0, 1, 2, 3, 4, 5, 6, 7, 8" ; Fld1+ 1; Fld2 - Fld1 + 1)

You need to make a Custom Function to use in this calcaulation.

Make a Custom Function Range with the Parameters Start & End.

The function looks like this:

Case ( End > Start ; Range (Start; End - 1) & "," & End; End )

Now Define Fld3 as a text calculation = Range ( Fld1; Fld2 )

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.