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.

Validation through calculation

Featured Replies

I want to validate the input in my Date field by a calculation.

I have the fields:

EmployeeID

Date

It has to check if the date already exists for that user and if the date is older than tomorrow.

thanks in advance

you will need another occurrence in your graph of this table

Not necessarily:

http://fmforums.com/forum/showpost.php?post/204677/

Is this what you mean, Michael?

Almost. The concatenating text field must be validated for Unique, Validate always. That takes care of the first requirement.

As for the second requirement, you could add it as 'Validated by calculation' to the same field, or validate the date field separately. The former may be simpler, but splitting the validation between the two fields allows you to pinpoint the message to the user. With a combined validation, the message is by necessity vague.

  • Author

I tried that approach but then I get the problem

that only one user can use a date.

I want all my user to use dates from today and earlier but a user can only use a date once.

I tried that approach but then I get the problem

that only one user can use a date.

No, any user can use any date once. After that, the used date becomes unavailable to that user, but other users are not affected.

  • Author

I'll make an example of it and post it later.

Maybe you can help me with this:

I'm making a script but I want to add a feature

that compares the current date with the found records and if the current date does not exist

it makes a new record.

What I got so far:

Go to Search

set field emloyee with user

set field checked with no

Search

Sort

if (???:Date = Get (CurrentDate))

Go to First

else

New record request

end if

  • Author

Sorry I wasn't clear about that but I mean that they can fill in dates from today and from days before today like yesterday ???

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.