1 Reply Latest reply on Aug 23, 2013 10:53 AM by philmodjunk

    Button with "Are you sure?" Confirmation



      Button with "Are you sure?" Confirmation


           Hi, I am using a button with the premade script to create a new record. I would also like this button to have a confirmation step that pops up a window asking for confirmation, yes or no. Is it possible to add that onto this button? If not, is there a way to recreate this button with that in mind?

        • 1. Re: Button with "Are you sure?" Confirmation

               Select the Perform Script option. Many developers use only that option with buttons so that they can update button behavior easily even when the button is pasted onto many different layouts.

               Then you can have the button perform a script to do what you want:

               Show Custom Dialog ["Create New Record?"]
               If [Get (LastMessageChoice ) = 1 // OK was clicked ]
                   New Record/Request
               End If