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 have a portal with several fields, let's just say there are 3 fields for example. When the cursor enters the third field, I need to call another script. I have one set up that works except for one problem. Assuming the three fields are labeld field1, field2, field3, and there is a global called field_name:

Go to Field ["field1"]

Loop

Set Field ["field_name", "Status(CurrentFieldName)"]

If ["field_name = "field3"]

Perform Script [sub-scripts, "field3_script"]

End If

End Loop

I placed the script on field1 so when the user clicks on it, the scfript begins to execute. However, without any pauses, the script freezes up entirely. I tried to add pauses except there is no way to determine how long the pauses should be for because some users will enter small ammounts of information very slowly while others may take a long time with vast ammounts since these field can and need to hold paragraphs of text. Is there anything I can do to make this script work effeciently? When I set the pause to a duration of 1 or 2 seconds the errors continually beep when it takes a long time.

Thanks, Shana

Shana,

You might try inserting a Go To Field [] step after the Set Field step. Leaving the brackets empty forces FileMaker to save the record before continuing to the If statement. Just a shot in the dark, but it might solve your problem.

HTH, Mike

  • Author

I tried that but it froze the file just as it does without pauses. Thanks though.

Shana,

Looking at your script again, you never give an exit criteria for the loop. You should add a step following after the Perform Script [sub-scripts, "field3_script"] step to exit the loop such as Exit Loop If [ ]

Mike

  • Author

yes that was the problem...it works now!!!

Thank you!

(it's always the simplest answer)

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.