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.

Script and dialog box

Featured Replies

Hello:

When "save record changes automatically" is not selected in layout setup, FM displays a dialog box with "Save" and "Don't save" buttons.

Question: is there a way to add scripts to these options in such a way that if the user clicks on the Save button FM saves and execute script X and if he clicks on "Don't Save" FM does not save and execute script Y?

That refers to layout changes, users generally cannot make any changes to the layout, and I don't think it would be possible to run a script based off of this.

Can you tell us why you would want to do this, perhaps we can come up with a better solution for you.

  • Author

Hi ZT:

Thanks for trying to help.

I am trying to find a way to prevent accidental delete/modification of data on a layout.

In my last posting Vaughan suggested that I use 2 layouts, 1 for data entry and 1 for browsing where fields are protected. It's a good suggestion but the problem is once data is entered the user is still on data entry layout and records can still by accidentally modified. I thought it would be possible to piggy back a simple script on the FM dialog box where once the user clicks on the Save button FM saves the record and execute a script that switches to the browse layout.

Edited by Guest

Using this method, you could create a few global fields for data entry. Then, when they have entered the data and pushed the "Save" button, you can add those to a new record in your data table and go to the browse layout. This way, they're not actually creating the new records themselfs, you are in your script.

  • Author

Thanks ZT :thumbup: .

I never thought of using global fields.

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.