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

  • Newbies

I have a date field in a fmp 4.0 database and currently have the following calculation to make sure the user enters a date in the future.

date > Status(CurrentDate)

but now i need to change it so the user has to enter a date that is at least 1 day in the future. e.g today is 13/08/2002 so the earliest date the user can enter would be 14/08/2002.

field validation by calculation

date > Status(CurrentDate)

would just be fine with option check only if field has been modified

Dj

  • Author
  • Newbies

Thanks for your help but i dont want to allow the user to be able to enter todays date because it's in an ordering system where you type in the date that you want your order to be made up which has to be at least 1 day from the date the order is placed

so i have to use the current date + 1 day but dont know how to enter this in the calculation field

Well, if you don't want to validate field and hence present to user an warning dialog than you need two fields on for data input and second, calculated for error correction (obviously you should use the second one for any meanings)

So let say that you have field date now create an calc field say dateCorrected as result date

If(date>Status(Currentdate),date,Status(Currentdate)+1)

Finally overlay those fields with dateCorrected on top and make it opaque and with option allow entry into field unchecked (the "date" field itself should have this option checked, however)

HTH

Dj

How about reading entire thread before responding, Rigsby?

BTW date>Status(CurrentDate) is the right validation formula. wink.gif

Dj

Sorry! Seems I jumped the gun with the formula. Your formula is correct, of course.

As far as reading the whole thread goes

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.