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.
Juggernaut

Featured Replies

How do you write a script for a custom dialog box with 3 buttons: "Ok" to save current record and exit to goto Main menu layout, "No" - do not save current record and goto Main menu layout, "Cancel" -remain at current screen to continue edit. Thanks.

Set Error Capture [ On ]

Allow User Abort [ Off ]

Show Custom Dialog [ "Save"; "Delete"; "Cancel" ;

"What would you like to do with this record?" ]

If [ Get(LastMessageChoice) = 3 ]

Halt Script

Else If [ Get(LastMessageChoice) = 2 ]

Delete Record/Request [ No Dialog ]

Go To Layout [ Main ]

Else

Commit Record/Request

Go To Layout [ Main ]

End If

""Ok" to save current record and exit to goto Main menu layout, "No" - do not save current record and goto Main menu layout, "Cancel" -remain at current screen to continue edit"

Allow User Abort [ Off ]

Show Custom Dialog [ "Save"; "Delete"; "Cancel" ; "What would you like to do with this record?" ]

# Button 1 = Save, 2 = Delete, 3 = Cancel.

If [ Get(LastMessageChoice) = 1 or Get(LastMessageChoice) = 2 ]

If [ Get(LastMessageChoice) = 1 ]

# Save record.

Commit Record/Request

Else

# Delete record.

Delete Record/Request [ No Dialog ]

End If

Go To Layout [ Main ]

Else

# Cancel script steps can go here.

End If

I avoid Halt script steps wherever possible. Halt kills all scripts and subscripts dead: that's a problem if you have some kind of looping script or a parent script paused ready to resume after the current script finishes.

  • Author

Thanks, Pal.

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.