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.

Show message with OK and CANCEL simple?

Featured Replies

Hi y'all,

I have a script with an IF loop in it which stipulates something like:-

IF ("Status(CurrentError)>400

Show Message ("The payment method field must be completed")

Exit Script

ELSE

IF ("Sta...........

Show Message (".............

bla bla bla bla

ELSE

IF .......

End IF

End If

End Quiff (bla bla bla)

The above is not exact but the ideas there..

It all works and comes up with a box with the message and option OK or CANCEL.

QUESTION...

If I click OK it all works.

If I click CANCEL it still carries on as if I had hit OK.

How do I set the Cancel button on the message to work?

Thanks in advance.

Matt

Show Message doesn't take any action on its own. You must test the button pressed in the Show Message dialog:

If(Status(CurrentMessageChoice) = 1)

exit script

else

...

End If

Your first two script steps should be:

Allow User Abort (off)

Set Error Capture (on)

-bd

  • Author

Thanks for that!

Is it -

1=Cancel

2=OK

???????

?? ??

??

??

??

??

??

Thanks for all your help

The buttons are labeled 1..2..3 from right to left. For the default names 1=OK, 2=Cancel.

-bd

Also keep in mind that if the user clicks on the "x" to close the window instead of answering "OK" or "Cancel" this also returns a choice number.

At least...I think it does. I have been wrong before tongue.gif" border="0

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.