July 18, 200619 yr 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!
July 18, 200619 yr 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
July 18, 200619 yr Author That works perfectly, thank you. Can you link me to this online help you speak of?
July 18, 200619 yr It is the Help that is available when FileMaker is open. It is part of the application. :P
Create an account or sign in to comment