3 Replies Latest reply on Jan 15, 2016 1:21 PM by fitch

    Custom Dialog Buttons

    GJBDJC

      I'm new to using custom dialog.  Specify allow you to enter a calculation rather than a script trigger??? And the calculation becomes the name of the button? Seems rather limited.  Am I missing something?

        • 1. Re: Custom Dialog Buttons
          Extensitech

          Yes.

           

          The options in the Show Custom Dialog script step are about the dialog box. Period.

           

          What you want to happen afterwards is what you enter as subsequent script steps. You can check which button they entered by using If/ElseIf and evaluating Get ( Lastmessagechoice ) , which returns the number of the button they clicked. So if that equals 2, and the second button was "Cancel", you'd cancel, if it was 1 and the first button was "do stuff" you'd "do stuff", etc.

           

          HTH

          Chris Cain

          Extensitech

          • 2. Re: Custom Dialog Buttons
            jbrown

            The backwards nature of the buttons used to get me; the right-most button returns 1. It is the default button. I get why it is that way, just makes it hard to remember what number goes with what button when you start using the dialog box.

            • 3. Re: Custom Dialog Buttons
              fitch

              FileMaker's custom dialog is indeed limited. Alternatives include: a popover; a modal new window; or a plugin.