Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

How to pause a script after custom dialog until OK is selected...???


This topic is 6746 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm trying to create a script in FM that shows a dialog box and only continues on if the user presses OK. Right now I've got it setup like:

Perform Script []

Show Custome Dialog[]

Open URL []

I'd like for the Open URL part to only happen if the user clicks OK. If they click cancel it needs to halt here and not run the Open URL part. What do I need to do to make this happen? Any info would be greatly appreciated. Thanks!

Posted

Take a look at the Online Help for [color:blue]Show Custom Dialog, there are a couple of examples there. In a very simple sort of way, your steps would look something like this:

Show Custom Dialog [ Title: "Choose URL"; Message: "Do you want to open a URL"; Buttons: "OK", "Cancel" ]

If [ Get ( LastMessageChoice ) = 1 ]

Open URL [ FMForumsList::Location ]

End If

The if statement will pause until they click a button, and then respond to how you have set it up.

HTH

Lee

Posted

It is the Help that is available when FileMaker is open. It is part of the application.

:P

This topic is 6746 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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