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.

Set Date Field to Blank Using Set Field Script

Featured Replies

Can I use the Set Field script step to set a date field to blank? For example, I have a field called birthDate defined as a date field. The field is populated for the current record with a date of 1/1/2002. If I want to remove the date so that the field is no longer populated with data, how would I do this using the Set Field script step? If I specify that the Set Field script step use quotes ("") as its result, the field is then populated with an invalid date. The technique of using quotes ("") with no data between the quotes works with text and number fields.

If you use SetField"" with date fields you will get a "?" for an invalid date. Using SetField"" with time will give you a time of 0:00:00. SetField relies on the format being the same as the destination field (steps like InsertCalculatedResult don't - so use them for inserting dates ranges into fields for scripted Finds.)

You can use the Clear script step for both date and time but the field needs to be on the current layout for this to work.

To use SetField for date and time, use these steps:

SetField["Date", "TextToDate("")"]

SetField ["Time", "TextToTime("")"]

  • Author

Thanks for the tip. Such a simple solution. THANKS!

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.