Page 1 of 1

Script and Buttons within a custom message

PostPosted: Thu Jun 30, 2005 8:49 am
by jmbter
I would like to display a custom message that allows the user to delete a portal row. I made a script to display a custom message but the buttons in the message do nothing. I understand I need some script that indicates IF choose button one (ok/delete) Continue Script and IF choose button two (cancel) Exit Script. How do I define these buttons in FMP 7

PostPosted: Thu Jun 30, 2005 1:33 pm
by Ender
Pretty easy:

...
Custom Dialog [...]
If [ get(lastmessagechoice) = 2 ]
Exit Script
End If
...

Just make sure the If[] is immediately after the Custom Dialog, or store the last message choice in a global if you need to do other things first.

Yep

PostPosted: Thu Jul 07, 2005 1:29 pm
by Jmbter
You were right on!