Jump 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.

"Show Custom Dialogue" not stopping script

Featured Replies

Hi...

I am probably missing one silly little simple thing, or maybe there is a better way to get from point A to point B.

Very simple script to clear a field. I added "Show Custom Dialogue" step in the script in hopes to stop the script dead in its tracks if I you hit the "cancel" button, but the script still continues even though the check mark to commit is not checked. 

Thoughts appreciated. I attached a simple database to show you what I mean because, after all, we all love to download filemaker uploads that have problems and fix them.

Thanks in advance, you all rock!

Mike

Dialogue.fmp12

Edited by MacFileman
Typo

That's because you're not checking the result of the dialog. The dialog itself doesn't exit a script, it only tells the script (if you ask for it) what button was pressed. The buttonlabels on a custom dialog may say 'Cancel' and 'OK' initially, but you can easily change them around so they say 'OK' and 'Cancel'. Or something completely different.

To check what button was pressed you need to use Get( LastMessageChoice ). See attached file.

Dialogue.fmp12

  • Author

WOW! THANK YOU!!!

I knew something like that was probably the answer. Unfortunately I do not script FM everyday to remember all this stuff. 

I am most appreciative and your solution makes perfect sense!

THANKS AGAIN!!!

Create an account or sign in to comment

Important Information

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

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.