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.

Auto-Enter Date & Validation problem

Featured Replies

I have a date field called date_recall (date for which the sales rep recall the prospect). My validation is that. Recall date must be within 3 months of the Insurance Expiry Date (which is called date_effective). date_effective is set to increment by a year if it's expired. Something I should also mention is that, date_effective can be empty. When that happens the recall date can be anything.

Now my problem is that I need to have date_recall auto-enter the date 3 months prior to date_effective and at the same time modifiable so that the rep can move it closer to the expiry date. (situation: He calls the prospect but prospect tells him to call back next week or whenever, as long as it's before the expiry date). Validation would be making sure that it is within 3 months and also not expired (if it is, then reset it to 3 months of next year but I assume this isn't a problem since date_effective will always increment by a year when it is expired).

Here's my Auto-Enter calculation:

If ( not IsEmpty ( date_effective );

Date ( Month ( GetAsDate ( date_effective ) ) - 3 ; Day ( GetAsDate ( date_effective ) ) ; Year ( GetAsDate ( date_effective ) ) )

;

Get ( CurrentDate )

)

And here's my validation calculation:

If ( not IsEmpty ( date_effective );

If ( date_recall ≥ Date ( Month ( date_effective ) - 3 ; Day ( date_effective ) ; Year ( date_effective ) ) ; 1 ; 0 ) ; 1 )

My validation does not work for some reason that is unknown to me.

  • Author

I could use some help, is my explanation not clear enough?

I use GetAsDate(date_effective) because it's a calculation field and I though maybe it doesn't really return a date.

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.