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.

Script step to remove date?

Featured Replies

Hello,

In Scriptmaker, I'd like to insert a line in a script to remove a date from a date field. I would think I should use the "Set Field" script step, specify the date field I want to clear, and then enter "". However the calculation result must be a date so the field displays a "?" How can I rewrite this to simply get the date field to be empty?

Thanks.

Try Set Field [ DateField, DateToText( "" ) ]

For this, I would just use the Clear Script Step.

Clear [ AnyDate ] [ Select entire contents ]

Lee

Keep in mind that the field must be present on a layout in which the Clear[] script-step is activated (at least in vs. 7). Otherwise it won't clear the field. I don't believe this is documented in FM Help either ...

A straight Set Field [ dateField ; "" ] works in vs 7/8 now. It's a wonderful improvement over prior versions.

Good point. I don't think this has changed either.

Lee

:woohoo:

Long overdue, and thanks for point this out to me. I feel like a sponge with v8. Best version yet.

Edited by Guest
v8 remark

  • Author

:

Hi Mr. Vodka!

Thank you. This worked. I wouldn't have thought of that since "Date to text" seems to contradict the calculation qualifier that result must be a date. I greatly appreciate your response.

  • Author

Lee,

By "AnyDate" I assume you mean the date field I am trying to clear. If so, that didn't work. Thanks for the response, though.

AnyDate is my sample date field name. You would just substitute the name of your own Date Field for it.

The only reason that this [color:red]Would Not work, is if the field is not on the layout that you're on when using the script. (see LaRetta post )

Lee

:cool:

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.