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.

Cancelling a Message

Featured Replies

Hi-

I've written a script that will 1) send a user to another layout or 2) cancel the script. That portion of my script works, but if the user clicks on the "x" at the top right corner of the message window they are sent to the other layout. What I would like to happen is if they click on the "x" then the message and script are canceled. Is this possible?

Thanks in advance for the help.

Not sure what you mean.

But there is the Halt Script step that will stop all running scripts....

Sounds to me like you're working in Windows (the Mac version doesn't have that "x"). Perhaps (and I mean "perhaps", 'cause being a Mac guy myself I rarely deal with silly Windows problems) setting AllowUserAbort to off might get rid of that "x" -- of course, you would still be able to use a choice in the message box to exit the script.

he he, silly windows problems. well i dont deal with windows either, but i am pretty sure that clicking that "x" in the upper right hand corner of the window is the same as trapping for 1 in your script. is your default answer (wich has the code of 1) the go to layout script? when i make my dialoge boxes i usualy make cancel my default answer. that way if someone on Windows clocks the "x" close box, it just cancels the script.

on the other hand you could get a plugin that will disable that close box if it is that much of an issue. or just re-arrange your messege box choices.

i am pretty sure that putting AllowUserAbout [off] does not hide that "x" in the corner, but you should still have AllowUserAbout [off] so (on Windows) they cannot hit the escape key to dismiss the dialog box.

  • Author

Thanks for the help. I changed my default option to exit the script, which has solved my problem.

I am wondering about the AllowUserAbort function, though. I set it to "off"in my script, but when I hit the esc key the message box still disappears. Is this not suppose to happen.

thats what i thought. at leaste that is what i have read, allow user abort [off] prevented using escape key on windows. i have never had to deal with it tho, since escape on mac does not cancel the message box. thats a good question, i wonder now myself, what prevents people from canceling a message box with the escape key?

Your solution to fix this problem was correct, dee2dum. The default - or messagechoice =1 is also the "X" in Windows. reversing your message buttons is the way to fix this. It also (for both platforms) makes it a little harder for your users to dismiss (hit enter or the X) the message.

As to the Allow User Abort (Off) on Windows: It will stop the user from hitting "esc" and canceling the action in MOST instances. One of the exceptions is the Show Message step. The "esc" key is the same as clicking the "X" in the window. I'm not positive, but I think you could trap for the "esc" key with Status ( CurrentModifierKeys ) in a calculation script step.

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.