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.

Dialog - Message Box - do not capture input

Featured Replies

Hi People!

I was just wondering if it is possible to set the Dialog/MSG box without really "accepting" input into any (temp or global) fields?

all I want is to do is give the option to user to run different scripts.

===============

click something

[RUN][yes][no]

===============

---------------------------

if [RUN]

go do script_1

if [yes]

go do this script_2

if [no]

exit this MSG box script

-----------------------------

thanx 2 ALL of you!

Zila,

The Show Message Box is what you need here.

You can control the scripts to trigger with Status(CurrentMessageChoice)...

Hi,

You can use the status(CurrentMessageChoice) to capture user choice on dialog boxes

Script...

Show Custom Dialog ["YourTitle", "Run the Script?"]

--->Just set 2 button captions, Yes and No

--->Do not enter anything into the input options

If ["Status( CurrentMessageChoice) = 1"]

Perform Script[script1]

Else

Perform Script[script2]

End If

Regards

Ed.

Sorry Ugo, posted just after you did!

Ed

  • Author

Hi people!

thanx for the respond smile.gif

I knew I was close..I was just "affraid to fall"..thanx for "pushing me over the edge"....now if I could only fly laugh.gif

how about ability to run the 3rd - "script3"?

Here you go...

Show Custom Dialog ["YourTitle", "Run the Script?"]

--->Just set 3 button captions, Yes, No, eerrmmm Maybe!

--->Do not enter anything into the input options

If ["Status( CurrentMessageChoice) = 1"]

Perform Script[script1]

Else

If ["Status( CurrentMessageChoice) = 2"]

Perform Script[script2]

Else

Perform Script[script3]

End If

Ed

Mine was shorter, then quicker laugh.gif...

But you explained it better.

And as we say here in France : Two advices are better than one... wink.gif

And finally mine could be a question. Is it Show Message or Custom Dialog we are talking about ?

I don't have FM6 yet. Will come with OSX in september....

I've seen a lot of discussion around about thi new feature. Is it really needless as 95% of the posts I've seen tend to say ?

  • Author

thanx laugh.gif

"Two advices are better than one"

Most definetly...I was going to ask Ugo "what he meant by...." anyways

and ones I looked at the fact that there are options for 3 choices...well the little light-bulb showed up....u guys were 2 fast for my respond!

Anyways....as we say: "All is well that ends well"

thanx again!

My last post needs another END IF at the end of the script I missed it off.

Ugo,

Show Custom Dialog is quite handy.

1) You can enter your own title in the message box

Instead of the title of the message box being FileMaker Pro, you can set it to whatever you like

2) Can do all the same features as show message

3) You can have up to 3 user inputs into the actual message box itself

These 3 inputs relate to fields in your DB

e.g

Enter your Name

-->you enter Ugo

Enter your Country

-->You enter France

Enter your favourite forum!

-->You enter fmforums.com

All this is done within the box itself

The custom dialog will then set these 3 fields to what you have specified.

4) There is the option to set the inputs to use the password character *

It's quite a nice feature really.

Ed.

  • Author

hi Eddy!

Thanx for the post smile.gif

I must say that this is pretty nice/powerful feature and it definetly beats the Dialog Box with 3 inputs....I was getting tired of having 150 g_t_c_fields in the DB just to make some calcs or run some conditinal script.

It seems that this feature is overlooked / not used as much

anyhow, thank you for the help!

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.