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.

Make a script run when a field is changed?

Featured Replies

Does anyone know how to have a script execute when the user changes the value of a field?

There are two ways to do this. The first is to restrict where the user can change the field to an area where they are already in a script. The user can't simply click into the field and edit it. Clicking into enters a script that stores the current value of the field. The script then loops, exiting the loop when the Status( CurrentFieldName )isn't the field they clicked into. After the loop exists, the value in the field is compared to the value stored and if they differ you run your script.

The biggest disadvantage to this is that it won't work if the user tabs into the field. So you have to take the field out of the tab order on the layout.

Alternatively, you can have an Edit button that takes the user to another layout where they can edit the information. Before going to the layout you record the value in the field and on the layout is a continue button which checks the value stored against the value currently in the field and if they differ, perform your other steps.

The last solution possible is a plugin. The Events plugin from Waves in motion (www.wmotion.com) can be used to run a script when a field is changed.

Chuck

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.