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 (/) slashes or (-) dashes on date field

Featured Replies

Hi, I was wondering in Filemaker 7 if there is a way that the slashes or dashes be put in place as the user enters eight digits in a field. I.E. as I input 03 than a slash appears automacatelly then input 26 then another slash then input 2005.

Thanks in advance.

you could have the data entry field be a text field, auto-enter by calculation, replaces existing value, with the calculation being:

Left ( field; 2 ) & "/" & Middle ( field ; 3 ; 2 ) & "/" & Middle ( field ; 5 ; Length ( field ) - 4 )

but if the user did put the dashes or slashes in, you'd get odd results, so this would be better:

Let (

[ text = Substitute ( Substitute ( field ; "/" ; "" ) ; "-" ; "" ) ] ;

Left ( text; 2 ) & "/" & Middle ( text ; 3 ; 2 ) & "/" & Middle ( text ; 5 ; Length ( text ) - 4 ) )

You could validate length being 8, but since it does the auto-enter before the validation, you'd have to take the inserted dashes or slashes into account, so similarly, the validation calculation could be:

Let (

[ text = Substitute ( Substitute ( field ; "/" ; "" ) ; "-" ; "" ) ] ;

Length ( text ) = 8 )

Then if you needed the result as a date, have another calculation field, date = GetAsDate (field) on which you do whatever date calculations or scripts, or whatever.

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.