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.

EventScript problem

Featured Replies

Hi all,

I recently started working with EventScript and am quite happy with it! It's really a handy thing!

Lately a problem occured:

I have a portal that displays projects that are related to a text. So users select an ID from a Value List by being directed to the last portal row to create new related records. After exiting the field, EventScript is triggerd by Auto Enter options.

for some reasons it does this 2 times...

So in case of an error I get the same message 2 times and the field validation for the field itself gets confused and messes up the script...I tried to work around it but the real problem is this 2 times!

Does this sound familiar to anybody???

Thanks,

Stefan

It is quite possibly to do with the order that scripts or calcs are run. It may be that a script is running after the first thing that causes the error message and therefore trips the validation again.

Try a halt script step somewhere appropriate to where the error message comes up

HTH

Phil

  • Author

Hmm...I noticed that a Halt Script works but not for me at this point. I definitely need an Exit Script step but this causes the script to be triggered a 2nd time...weird...

If you have a commit records script step in there, it could be that. Otherwise, the script is likely in some way triggering a second validation or autoenter of your field leading FM to re-evalute the validation and run the script again.

  • Author

Thanks for all your suggestions!

I managed to get rid of the 2 times pop up by placing Go To Field and Halt Script steps very strategically...

The field validation itself still caused trouble so I worked around it with my own validation as the very first script step of the EventScript after exiting the field.

Works for me...

Stefan

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.