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

This is a real brain cracker for me, but I'm sure there's a way out of here.. smirk.gif

I have a numberfield with a number, say '7'. Users can change this number with a scipt to another number (no decimals).

I need to make a calculationfield that will give a (whatever) result when the new number is not a multiplication of the original number (7).

So when number '19' is entered, I should have a result, but when '21' is entered, the calculationfield needs to be empty.

I was thinking in the direction of ranges in a globalfield, and then check the field with a PatternCount calculation, but the developmentscript took too long to make a broad range of numbers, and it's also a 'limited' solution.

Anyone.....?

I'm not sure if I understand correctly, but here goes...

In your script, set another number field (oldnumber) equal to the current number, before it's modified. Create a calculation field of Case( Mod(numberfield, oldnumber), calculation_for_result ).

Is this what you're attempting to do?

NewField = Case(Mod(Number. 7) > 0. Result, "")

  • Author

Queue, thanks for thinking along!

I allready have the 'root' number (7) in a separate field. The new number is set in a -so called- 'trigger'field (exit this field and a script will run, OZ Events plugin).

But what I need to know is Case(numberfield = multiplication from rootnumber , "OK" , "")

I hope I've clearified my question by this..... smirk.gif

  • Author

Thank you Oldfogey!

It works great!

You don't really need the > 0; if it's 0, the result will be false. Nor do you need the null result. If the test is false and the number is divisible by 7, then you won't get a result anyway. So Paul and I gave the same result; mine is just simplified a bit. wink.gif

I just hadn't read your stuff properly. Yours is not only simpler it's better. Mine did not take into account the possibility of negative Mods.

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.