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.

Exit script loops inappropriately

Featured Replies

If a user indicates he/she wishes to exit the database, this script progresses appropriately to the 'Exit Application' step, but then loops back to the custom dialog a 2nd time! On the second pass through the script, the database closes.  Any idea how this could happen and how to avoid users having to respond twice about exiting a database?  I'm stumped. The same looping occurs if using the 'Close Window' or 'Close File' steps.

 

 

 

Do you have any OnClose events that you attached scripts to?

  • Author

Any help for this poor misguided would-be database designer would be appreciated.

 

If a user indicates he/she wishes to exit the database, this script progresses appropriately to the 'Exit Application' step, but then loops back to the custom dialog a 2nd time! On the second pass through the script, the database closes.  Any idea how this could happen and how to avoid users having to respond twice about exiting a database?  I'm stumped. The same looping occurs if using the 'Close Window' or 'Close File' steps.

 

Here's the actual script:

 

# Script exits database

Show Custom Dialog ["Exit Database"; "Do you wish to exit database?"]

Set Variable [$UserInput; Value: Get(LastMessageChoice)]

If ($UserInput = 1)

  Exit Application

  // Close Window [Current Window]

  // Close File [Current File]

End If

Exist Script

 

Not sure about your "Loop"  since your script does not contain one.  Also be sure you don not have a script trigger assigned to your button which could cause a perceived loop. Also remember the buttons assignments  1,2,3  are opposite to the displayed buttons for the user.  See attached.  Hope this helps or leads you down the correct path. 

post-88355-0-94076400-1418417212_thumb.j

I merged  your two topics into this one.

 

Please do not multiple post your questions. There are lots of reasons if you want to know what some of whom are Private  Message me

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.