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

I'm using an If statement at the beginning of a script to check if the user has selected a customer:

If [ "IsEmpty(CustomerID)" ]

Show Message ["Please select a customer."]

Go to Field ["CustomerID"]

End If

My problem is the script doesn't pause long enough for input. What's the best method. Thanks.

Two ways.

Put a pause/resume script step into the script; that way, the script will pause until the user hits the "continue" button in the status bar.

or...

After the "show message", exit script. That way the script aborts, and the user has to start over. If they have half a brain, they'll enter the required data before doing so.

  • Author

Well I don't want to show the Status Area and I'd like the script to continue after they select the customer.

You can still hide the status area. Just create a button on the layout that continues the script.

The other option is to use a timed pause in a loop and check the field to see if the field is still empty:


Loop

  Pause [00:00:01]

  Exit loop if [not IsEmpty(MyInputField)]

End Loop

* Continue on with your script

The other option is to use a timed pause in a loop and check the field to see if the field is still empty

At first I thought this would be dangerous because it could cut them off half way, but I guess the test would still fail until the user leaves the field.

Also be aware that the user can use the "Enter" key to continue a paused script.

Thinking a bit more about your problem, I can see why the button is undesirable because it's presence would be somewhat of a mystery when you aren't in this special circumstance.

I suggest setting up a special layout just for entering the client number. It only needs one field, and you can place instructions to fill in the data and click "go". This is also nice because you can avoid the error dialog.

  • Author

Thank you for the responses. The pause script suggested by Mr. Weaver was what I was looking for but a pop-up window/dialog box would be nice if I could get it to pop-up in the center of the screen. That feature is definitely on my FM wish list. I've hear of people duplicating the layout then creating what appears to be a pop-up dialog box. It's a lot of extra work especially if you end up modifying the layout before it's all finished, but I think that's the route I'm going to take. Just wanted to be sure I wasn't overlooking anything. Thanks again.

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.