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.

Tab to initiate a script?

Featured Replies

Here's another question:

I have layout with four entry fields and another field that I am using to instructions as to what data needs to be entered in each field. I've tried to set the instruction field based on the Status(CurrentFieldName) function, but it doesn't seem to work. So I'm setting them with scripts placed on the fields themselves that set the instructions field. The problem with that is that when they tab (which makes sense on a data entry screen), they circumvent the scripts/ Is there a way of setting a script on the tab? Or better yet, does anyone know how I can get Status(CurrentFieldName) to work in the instruction field definition?

-Heather

The instruction field need to be an unstored calculation.

  • Author

Making them an unstored calculation produces results, at least, but only the first case in my statement, and that is the only result, whether it is true or not. Does the fact that the data entry field are globals have anything to do with it?

-Heather

Can't answer the question about Status(CurrentFieldName), but here is a method that will work with global input fields and with tabbing between fields (assuming you set the tab order in the logical sequence for your instructions).

Use this unstored calculation for your instructions field:

Case(IsEmpty(Field1),"1st instruction here", IsEmpty(Field2),"2nd instruction here", IsEmpty(Field3),"3rd instruction here", IsEmpty(Field4), "last instruction here", "")

As FM returns the first true answer in the Case statement, you might want to force the user to go to the first field at the start. It won't work properly if they start in another field. When all the fields contain values, the instruction field will be empty. Of course, if your instructions change, you'll need to change the code.

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.