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.

Counting Functions or Scripts

Featured Replies

Is there a function or script available to turn a field off once the count gets to zero?

I have a table that has four fields, I have the counting and subtraction working, except that the end user is able to assign keys even after all of the keys have been checked out. What I would like to find out is if there is a script or function that would turn the field off and alert the user to order more keys.

Thanks for any help.

Hal

Welcome to the forum.

Is this on a layout or a portal within the layout.

Let's say it's a portal. Set the fields to a button and create a script that checks the count and if count = 0 exit script.

If(Countfield = 0)

Show Custom Dialog(Notice; "No more keys available")

Exit Script

endif

Go To Field(Field1)

This is a quick and dirty script. If you need more help let us know.

hth

*******************************************

I had some time so I put this example together for you. I hope it takes you in the right direction.

GTRR_Test.zip

Edited by Guest

  • Author

Thank you for the feedback, it was very helpful.

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.