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.

Custom Dialog - To close dialog is it necessary to Get ( LastMessageChoice )?

Featured Replies

Hi, I had a simple question that had recently come up in my scripting.
 
When writing a script that contains a Custom Dialog with just the default "OK" button and no other buttons, is it necessary to use a Get ( LastMessageChoice ) script step right after to properly close the dialog and perform the next action? Or is it okay to just write the rest of the script steps that follow, right after the Custom Dialog step, without getting the last message choice? Since there really is only one button choice presented to the user and not multiple outcomes.
 
Thanks for any insight!
 
Bellow is a sample script with this scenario:

 

# Show custom dialog with only one button ("OK" button with "Commit Data" checked).
Show Custom Dialog [ Message: "Please click "OK"."; Default Button: “OK”, Commit: “Yes” ] 
#
# Perform the next script step (without getting the last message choice).
Go to Field [ ]

The dialog box closes automatically when the user clicks one of the available buttons, you can't close it through a script step.

 

The get(lastmessagechoice) is there so you would know what button the user has clicked to close the dialog

  • Author

So in this particular case since there is only one button I don't really need to know which button was selected in order to continue with the rest of the script, right?

 

I've seen cases where there are two buttons and the use of Get ( LastMessageChoice ) becomes apparent. For example, a "YES" and a "NO" button. If the user clicks "yes" some specific script steps need to be performed, if they click "no" instead a different set of script steps are performed.

 

Since there is only one button in this case, and only one outcome, there is no need to use the Get ( LastMessageChoice ) step, correct?

that's right, no need to work with the get(lastmessagechoice)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.