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.

Featured Replies

This is bound to be on here somewhere, but I can't find it after doing several searches. How do I get a zip code field to produce XXXXX-XXXX if the last 4 digits are entered and just the first 5 digits without the - if that's all that's entered?

a new calc field that combines the two you need:

Field1 &"-"& field2

where field1= first 5 of zip

where field2= last 4 of zip

you could also do an auto-calc (with replace) for your zip code field:

If(PatternCount(ZipCode; "-") = 0; Left(ZipCode; 5) & "-" & Right(ZipCode; 4); ZipCode)

This will automatically replace the user's input once they exit the field.

Martha

I like to use the Auto Enter as Martha has posted.

However, you need to modify your calculation so that the = sign doesn't get included if the field 2 doesn't have data. something like this:

Case ( IsEmpty ( Zip_4 ) ; Zip_5 ; Zip_5 & "-" & Zip_4 )

HTH

Lee

  • Author

Thanks, Martha. That did it. Lee I tried adding your suggestion to Martha's but couldn't get it to work.

The reason that didn't work, is they are two different approaches to the same thing.

I took a 3 field approach, because James had provide a calculation for that aproach. What I added was the part to check for a value before posting. Whereas, Martha took a advantage of a change in the Auto Enter Calculation, that allows the calculation to be done in one field.

However, I like the calculation that Matt Willis provided on FMExperts List.

Lee

  • Author

Thanks, Lee.

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.