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.

Conditional Error Message

Featured Replies

Hi guys,

Need some ideas, or if it's even possible to do what I need.

I have a field where I am expecting specific values. Currently, I am using a formula to validate the entry, but the message is general for all conditions.

The conditions are: "Only Number Only", "Entry Must be 6 or 5 Characters", "No Duplicate Records Allowed.", and "Entry MUST start with 8, 6, 2 or 1"

Is there a way that I can have individual custom messages for each error?

Thanks

Rudy

28 minutes ago, rudym88 said:

Is there a way that I can have individual custom messages for each error?

Not through the validation mechanism, but you could use a script trigger to precede validation and do your own thing.

  • Author

Thanks,

I am experimenting with a script using the "IF" and triggered on exit, but haven't been able to get it to do what I need. Any ideas would be much appreciated.

Thanks

Rudy

Edited by rudym88

You should trigger the script OnObjectValidate otherwise validation will occur before the script runs (at least those elements of validation that do not wait until record commit), defeating the very purpose of this exercise.

The script itself could be something like:

Set Variable [ $errors ; ... ]
If [ not IsEmpty ( $errors ) ]
  Show Custom Dialog [ $errors]
  Exit Script [ Result: False ]
End If

with the $error variable calculated along the lines of:

List (
If ( some test ; "some error message") ; 
If ( another test ; "another error message") ;
...
)

(Untested)

Edited by comment

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.