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

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

Recommended Posts

Posted

I use a button to show a custom dialog asking a user if they want to perform a function.

Even if I cancel the dialog using the cancel button, the function is performed.

This is how I did it in script maker

[color:blue]Show Custom Dialog []

[color:blue]If

[color:gray]--statements here

[color:blue]Else

[color:gray]--more statements here

[color:blue]End If

How can I abort the script if the user selects the cancel button?

Posted

You need to have something in the IF statement.

In this case, use the Get( LastMessageChoice ) function. It'd be something like:

If[ Get( LastMessageChoice ) = 1 ]

stuff when button 1 is clicked

Else If[ Get( LastMessageChoice ) = 2 ]

stuff when button 2 is clicked

Else

stuff when button 3 is clicked

End If

This topic is 6350 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.