3 Replies Latest reply on May 18, 2012 1:45 AM by Vaughan

    dialog glitch?

    m.bodily.consulting

      I have a script which brings up a dialog box with 2 buttons "Cancel" (default) and "Yes, proceed." but when I select the "Yes" button the dialog shows up again, in which I have to select the "Yes" button again and the script will proceed with it's following steps. Why is this dialog box showing up twice??

       

      This is what my script looks like:

      Show Custom dialog [(Default button) "Cancel", (button 2) "Yes, proceed"]

      If [Get (LastMessageChoice ) = 1]

      Exit Script []

      End If

      Clear [field name1]

      Clear [field name2]

      Clear [field name3]

       

      I've attached my script and an mp4 video of what the dialog box does

        • 1. Re: dialog glitch?
          Vaughan

          I'd guess that there are multiple copies of the script running. Either that or the file has corruption (not likely).

           

          Lastly, are they any script triggers attached to the layout, or to the portal objects? Use the script debugger to see what's happening.

           

          BTW rather than use the Clear step, use Set Field. The Clear, Cut, Copy and Paste script steps rquire the fields to be on the current layout. Set Field does not have that requirement.

          • 2. Re: dialog glitch?
            m.bodily.consulting

            I am woking on FMPro 11 (not advanced). Window platform.

            There was an OnLayoutEnter script running, but I realized I didn't need it anyways so I deleted it. But the dialog box still showed up twice.

            • 3. Re: dialog glitch?
              Vaughan

              What did the onLayoutEnter script do?

               

              Make a new script with just the dialog and If statements, put a button on on the layout (not portal) to run this new script and report back.