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 alert when a field changes from a specific value

Featured Replies

  • Newbies

I have a field that is populated by a dropdown list - when a user changes the value of that field, I want to display an alert. However, I only want that alert to show if they are changing from ValueA to any other value. Changing from ValueB, etc. should not show the alert.

 

I apologize in advance if this topic has been covered - I've been searching for quite awhile, but couldn't find a solution...

 

Many thanks!

Solved by eos

Go to solution
  • Solution

Simplest way to do it is like this (I think …). Beware that this method works with a drop-down, but not with a pop-up, since you cannot capture the value on field entry.

DropAlert_eos.fp7.zip

  • Author
  • Newbies

Thanks, I appreciate it!

Well, this works with pop-up or drop-down and I believe it is simpler.

 

The thing is ... you CAN capture the value of a popup field upon entering field by using script parameter because script parameters are evaluated BEFORE the script trigger fires.  So single trigger OnObjectModify does it all with:

 

Set Variable [ $prior; Value:Get ( ScriptParameter ) ] 

If [ $prior = "Value A" and $prior ≠ DropAlert::theValue ]

Show Custom Dialog [ Message: "Changed value"; Buttons: “OK” ]

End If 

 

Script parameter is simple:  Get ( ActiveFieldContents )

 

Please see attached ...

DropAlertMOD.fp7.zip

Well, you live and learn. I was always under the impression that pop-ups are immune to interrogation, but this a nifty technique indeed.

I did want to correct where I misspoke ... I said, "...because script parameters are evaluated BEFORE the script trigger fires."  This is, of course, technically incorrect because the script has obviously fired but script parameter gets evaluated first.

 

There have been many inconsistent behaviours, particularly between platforms, when using these controls (drop-downs, pop-ups, checkboxes and radio buttons) and there have been bugs in either one platform or the other and it is difficult to keep them straight.  

 

AFAIK, this works with Mac and Windows both and for all controls and in both 11 and 12.


BTW, MrSmilliamson, I LOVE YOUR CAT PICTURE!!    :yep:

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.