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.
Juggernaut

Making "X" field required as a result of "Y" field being populated after a modification.

Featured Replies

Is there a way to make a field required based on the "populated" status of a related field?

Sometimes I want to make sure that if a record is revisted to add a piece of information that an a related field is also handled approriatly.

Does that make sense?

I think it could be accomplished through a second layout that is only accessed as "data update" type form with the newly required field on that form only?

I think that would work but is there an easier way, and that would only work in an update mode, not on the fly during data entry?

If X-field(not is empty) then Y-Field (Is Required)

Thanks,

Steve

... Sure, i think if i understand your question right...

Just go to validation options for Y-Field..

Case( not IsEmpty(XField) and IsEmpty(YField) and Get(LayoutName) = "Data Update" ; 0 ; 1 )

  • Author

Hi,

This is not working for me....I must be doing something wrong.

Layout Name: Data_Entry

Fields:

Time_In

Time_Due

My calculation looks like this:

Case( not IsEmpty(Time_In) and IsEmpty(Time Due) and Get(Data_Entry) = "Data_Update" ; 0 ; 1 )

I get the error at Get(data_entry)"this parameter is an invalid get function parameter".

Is this the proepr way to call a layout?

Also, in your sample calculation, where is "data update" coming from?

Sorry to be a pain, but thanks for your help if you can.

Steve

Edited by Guest

Case( not IsEmpty(Time_In) and IsEmpty(Time Due) and Get(LayoutName) = "Data_Update" ; 0 ; 1 )

Sorry i should have made clear that Get(LayoutName) is a fileMaker parameter that will retrieve the current layout you're on.

RE: "Data Update" ... i thought that was the name of the layout that you wanted the validation to work on.. or did i miss something there?

If you just want the basic check to only ask for the value if a different field isn't empty then just this will do (i must have misunderstood your question):)

Case( not IsEmpty(Time_In) and IsEmpty(Time Due) ; 0 ; 1 )

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.