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.

Featured Replies

I have two fields, field A contains inventory types, field B contains information about a particular inventory item.

I need field B to contain a value (not empty) when Field A's content is equal to "item 1" but it can remain empty for any other inventory item that is not "item 1".

Could someone please give me some guidance? I've tried several Validation by calculation formulas but can't get it to work at all.

Any help would be appreciated.

Could you make field B a calculation field, or do you need to have the ability to enter data into it manually?

Jerry

  • Author

I'm tracking inventory items, so if the item being logged is a paper roll (field A), the user must fill in the roll weight (field : and the roll weight will vary from roll to roll. So I can't use a calculation field.

Hi hcoe,

Attach this validation to Field B. While in the calculation dialog, uncheck 'Validate Only If Field Has Been Modified.' Click 'Strict' Do not allow User Override and provide a message "If FieldA is Item1 you must enter something in FieldB." Validation calculation would be:

FieldA = "Item 1" and not IsEmpty(FieldB) or FieldA <> "Item 1"

LaRetta

I hate validations, mainly because of the absurd buttons FMP uses. So ..

If it really MUST be strict, use a looping script when you give the user the new empty record and don't let it (the user) out until it has filled in both fields.

Otherwise, have a calc field, MT Msge -

Case(not IsEmpty(FieldA) and IsEmpty(FieldB), "Fill in FieldB, Dopey", "")

and put MT Msge next to FieldB, with no borders and text coloured red.

  • Author

Hi LaRetta, That was exactly what I needed. Thanks!

LaRetta said:

Hi hcoe,

Attach this validation to Field B. While in the calculation dialog, uncheck 'Validate Only If Field Has Been Modified.' Click 'Strict' Do not allow User Override and provide a message "If FieldA is Item1 you must enter something in FieldB." Validation calculation would be:

FieldA = "Item 1" and not IsEmpty(FieldB) or FieldA <> "Item 1"

LaRetta

  • Author

thanks for the tip, i'll try that.

Oldfogey said:

I hate validations, mainly because of the absurd buttons FMP uses. So ..

If it really MUST be strict, use a looping script when you give the user the new empty record and don't let it (the user) out until it has filled in both fields.

Otherwise, have a calc field, MT Msge -

Case(not IsEmpty(FieldA) and IsEmpty(FieldB), "Fill in FieldB, Dopey", "")

and put MT Msge next to FieldB, with no borders and text coloured red.

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.