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.

Field validation insanity

Featured Replies

I am trying to validate two fields that are foreign keys to a parent record. Each field is dependent upon a name field to have a value and if the validation fails then I want to use the auto-enter calculation replaces existing result feature to wipe the value of the foreign key value.

The problem is that one of the fields is working perfectly and the other refuses to work at all. The most frustrating part of this fact is that both are extremely simple relationships and are not working as intended.

First calculated field;

Field Name: _kf_DepartmentContractID

Calculated value: If (IsEmpty(E_000141_Department_Contacts);"")

E_000141_Department_Contacts is the field that I am referencing for the 1st field

Second calculated field;

Field Name: id_JobClassID

Calculated Result: If ( IsEmpty ( trans_job ); "")

trans_job is the field that I am referencing for the 2nd field

Both fields have the same exact settings

Regardless of what is typed into the trans_job field the second field wipes its value. It has to be something extremely simple that I'm missing but this is driving me insane.

Edited by Guest

The expression:

If ( IsEmpty ( x ) ; "" )

returns an empty result regardless of the value of x. If it appears to work for the first field, then something is wrong there, not with the second field.

You probably want something like:

If ( not IsEmpty ( x ) ; Self )

P.S. I don't see what this has to do with validation.

  • Author

Ok that worked, I just wasn't using the if statement correctly. I'm just trying to make sure that my data is "clean" and doesn't contain erroneous data.

Thanks

Edited by Guest

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.