I have a button with a script that erases a record when clicked but I want a custom dialog box to appear warning them and giving them the chance to cancel. How can I add this to the script?
Show Custom Dialog.
Follow that with an If, and check get ( lastmessagechoice ) to see which button they clicked.
Thank you Chris,
I am probably not experienced enough but how would that look in a script? Here is what I tried but doesn't work. Any help is appreciated.
It isn't necessarily a matter of experience.
Did you read the manual?
Your script won't work. Close; but that is not how FileMaker handles dialog results.
Unfortunately, FileMaker has not released FileMaker 14 help as a standalone PDF. Though they did that for FileMaker 13.
But over in that other place (FMForums) somebody has done FileMaker's job for them, and FileMaker 14 help is available.
FMP14 Help PDF - FileMaker Pro 14 General Discussion - FMForums.com
Please take a look at that. And take a careful look at exactly how "Show Custom Dialog" works.
Or look here:
Show Custom Dialog
Thank you Bruce for leading me to the answer. I now understand the options are numbers not names in the script. Took some searching but I got there. Thanks again.
thank You very much for that link!
Retrieving data ...