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.

Featured Replies

I have a script that uses a message to prompt the use if they want to creat a new record. What I'd like to do is have the message be displayed saying "do you want to creat a new record" then give the user the ability to either exit the script (which would be attached to the "NO" button on the message, or allow the user to contine and creat the record (YES button). My question regards the use of the message and how i can use that in conjunction with a IF statement perhaps to set the condition that allows the user to exit. any suggestions?

Regards, Ron

How about:

Show Custom Dialog [ "Message"; "do you want to creat a new record" ; "Yes"; "No" ]

If [ get(lastmessagechoice) = 1 ]

#create record stuff here

End If

Ron:

What you are looking for is Get(LastMessageChoice). After your custom dialog (where, let's say, the "Yes" is the default button and the "No" is the next button), you'd have:

If [Get(LastMessageChoice)=1]

New Record //(or whatever steps you want to use here)

Else //(you can use ElseIf, should you have more than 2 buttons)

Exit Script //(or however you want this to work)

End If

-Stanley

  • Author

thanks.

Ron--

As an aside, are you sure that asking your users to confirm adding a record is in their best interest? Such dialogs can become annoying, and it is well documented that people will tune out your dialogs if they are too numerous (Think about how many people have said "Yes" to deleting all the files on their hard drive! That's why we have the Recycle Bin, IMHO).

If they're clicking an add button, let that serve as indication of intent and don't bug them with a confirm button.

Just a couple of cents.

David

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.