Custom Dialog Boxes!
FM PRO 11
In my database right now i have a button that when clicked clears specific fields. Right now i have a scrip that does that for me and gives me a dialog box warning me that the fields will be cleared. Today i noticed that even if i hit cancel on that dialog box the fields still get cleared. Is there a way that i could have the fields cleared only when the "Ok" button of the dialog box is clicked?
Thanks for your time!
Yes, this can be done.
Your script should work like this:
Show Custom Dialog ["these fields are about to be cleared..."]
If [Get ( LastMessageChoice ) = 1 /* button one, the default was clicked */]
//clear your fields