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 - how to make use of buttons

Featured Replies

  • Newbies

Wondering how I can make use of the OK / Cancel buttons when I add a Show Message step to a script. What I want to do is continue the script if the user responds by clicking OK, but abort the script if the user clicks Cancel.

I thought if I followed the Show Message step with an If step . . . but I don't know how to refer to the value of the button from the message box.

Hoping someone can point me in the right direction . . .

Version: v6.x

Platform: Mac OS X Jaguar

Try this...

Set Error Capture(On)

Show Message("Whatever you want to say")

if (status(currentmessagechoice) = 1)

OK was pressed, do something here

else

Exit Script

Endif

basically the status(currentmessagechoice) returns 1, 2 or 3. 1 is the rightmost button (also the default button, and considered to be the first button), 2 is the next rightmost and 3 is the leftmost button.

Hope this helps.

Echo

  • Author
  • Newbies

Thank you very much!

So far I just have my script confirming my choice with another message box ( "You answered OK" or "You chose Cancel") and I'm getting the right message box for the right action.

So now I can go on and add the actual functions.

I really appreciate the help! grin.gif

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.