Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Custome Dialog Box (Script Maker)

Featured Replies

I noticed in Script Maker just now that I can make my own dialog boxes. There are not a whole lot of options but if I could do this it would save me a lot of work!

I know I can make a dialog box and have up to three buttons on it. What I don't know is if I can make each button go to a different Layout. If I could... oh, would that be awesome!

Version: v7.x

Platform: Mac OS X Panther

Sure, just like in FM6. After the Show dialog script step, check for which button using If tests & Get ( LastMessageChoice ) = 1 or 2 or 3, and have each If test do a Go to Layout.

Is this what you were asking?

  • Author

Yes, but I am new to filemaker so I never used 6. So I will need the Show Dialog Box script and then another script for each layout?

Could you give me a more detailed example of the code for the script?

Sintax

something like that should work (i'm sure someone will have a more elegant way to go it)

if Get ( LastMessageChoice ) = 1

go to Layout <layoutname>

endif

if Get ( LastMessageChoice ) = 2

go to Layout <layoutname>

else

go to Layout <layoutname>

endif

by using the input fields section the user can input data directly into fields

  • Author

Thanks Aussie John -

Does that go into the Specify Calculations spot of the Dialog Setup or is this a seperate script all together?

This is all one script, I'll put each Script step on a separate line:

Show Custom Dialog[...

If [Get( LastMessageChoice ) = 1]

Go to Layout [foo]

Else If [Get( LastMessageChoice ) = 2]

Go to Layout [zoo]

Else If [Get( LastMessageChoice ) = 3]

Go to Layout [poo]

End If

In the first If test, Specify Calculations gets the: Get( LastMessageChoice ) = 1

In the Show Custom Dialog, the Specify buttons are for using a field's text for the dialog rather than typing in your own. Type in your own until you're used to how this works.

Clearer?

The logic to handle the contingencies of which button was clicked goes directly after the "Show Custom Dialog" step in your script (as in Sam's example).

Version: v7.x

Platform: Mac OS X Panther

  • Author

Awesome you guys!

Once again you have come through (in record time!) and helped me out. I used to think the MovableType forum was the best around... now I am thinking otherwise. laugh.gif

Sintax said:

Thanks Aussie John -

Does that go into the Specify Calculations spot of the Dialog Setup or is this a seperate script all together?

This is a separate script ie put your "show custom dialog" before the items i indicated

Version: v6.x

Platform: Mac OS X Panther

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.