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.

Automatic date in a date field

Featured Replies

I have a date field, Date, I want to be filled in with todays date if someone fill in a name in another field, Name. To do this I have made a calculation with one If case

code:


If( Name <> ""; Today; "")

This worked when I had the date in a text field but now, when I changed it to a date field, it don't understand what to put in the field if there is no name in Name. If there is no name FM puts a "?" in the field. This most be because "" is a text command, but how do I do to say no date?

//Henkan

Hi, try this out instead.

It uses Status(CurrentDate) as opposed to Today.

If( Name <> ""; Status(CurrentDate); TextToDate(""))

HTH

  • Author

Thank's Andy!

It was the last part TextToDate("") that fixed it.

I still use the Today function, is there any perticular reason that I should use the Status(CurrentDate) function instead? Is that function better in any way?

//Henkan

The today function was from an older version.

status(currentdate) is more stable. Better to use this i have found.

glad that it works ok though.

always happy to help

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.