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.

Button / script help needed

Featured Replies

While trying to write a script for a button I am hitting a snag. I am wanting to have a dialogue appear which asks the user if they are sure they want to start a new record and then give them the option of either cancelling the script or proceeding. I can get the dialogue box, but when I add the "cancel" button onto the dialogue box, it continues on to create a new record. When they click cancel I want the cancel button on the dialogue box to cancel the whole script. If they click "Okay" I want the script to continue and start a new record.

Edited by Guest
Trying to make problem more clear

  • Author

I used my filemaker help to decipher a fix. They have the new record request first, but this worked better for me.

custom message

New record request

IF function with a GET(LastMessageChoice)=1

EndIf

The step you posted above will create a new record no matter what the user does. The correct script (in pseudo-code) would be:

Custom Dialog [ "Create a new record?" ; 1=OK, 2=Cancel ]

If [ Get ( LastMessageChoice ) = 1 ]

New Record/Request

End If

I wonder why you want to hold the user up with an essentially meaningless dialog box. If the user has clicked an Add button, it seems reasonable to assume that they want to add a record.

Putting in too many dialog boxes just means that when the user gets a truly important message (like, "Are you sure you want to delete all records?"), they are more likely to click without thinking.

Moreover, scripting this DOESN'T take care of a user adding a record by using a keyboard shortcut or menu entry to add a new record. You'll still end up with a whole bevy of empty records when your users hit those instead of your button (and they will).

David

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.