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.

Cancel Script and redirect

Featured Replies

I have a printing script that directs the user to one of three printing layouts (depending upon their response to the "show message" function. If the user aborts (escape) after the redirect to one of the print pages, the script

halts, but the user is looking at that layput page. How do I set it up so that when a user confirms "cancel", the script will redirect the user back to the main layout page?

Do NOT let the user abort. First step in script. Use another show message which will give the user the choice to cancel or print.

Here's a script that I use a lot for printing. No matter what the user does, they will always end up back where they started.

Allow User Abort [Off]

Enter Browse Mode

Set Error Capture [On]

Beep

Show Message [buttons: "Cancel", "Choice 1", "Choice 2"; Data: "Print page choice message."]

If [status(CurrentMessageChoice) = 1]

Exit Script

Else

If [status(CurrentMessageChoice) = 2]

Go to Layout [Print Layout 1]

Else

If [status(CurrentMessageChoice) = 3]

Go to Layout [Print Layout 2]

End If

End If

End If

Toggle Status Area [show]

Print Setup [Restore setup options, No dialog]

Enter Preview Mode

Pause/Resume Script ["0:01:30"] {optional - allows preview of print}

Print

Enter Browse Mode

Go to Layout [original layout]

Toggle Status Area [Toggle]

  • Author

Your script is almost identical to the script that I'm currently running. The problem I'm attempting to resolve is after a user makes a choice and the script starts to run the print routine and the user then hits escape, they are left on the printing layout. I'm try to avoid sudden dump out and come with a solution that will redirect (after the escape) the user back to main layout.

Thanks

Look at the first step in the script. The user can press the escape all he wants, but it doesn't do anything.

  • 2 months later...

I know this is not recent but how would you deal with this scenario. The records are printed from a separate file and the Print Setup (Windows) is available to the user - to offer them a choice of printer - and the user then cancels. How can I get him back to his original layout where the button is located.

Hope you can help.

Many thanks

Carl

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.