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.

Text Fields - RemoveFormat option?

Featured Replies

I've inherited some databases where text fields have all sorts of different formatting in them that need regularizing, so I was happy to discover the strategy of using the TextFormatRemove(Self) as an auto-entry option, so that when I build a database I can control the formatting of various fields that wind up getting put ontto reports etc.

I'm tempted to just make this a standard practice for all my text fields -- would anyone anticipate any downside to this practice? Of course, it prevents the user from doing something he or she might like to do, but aside from that -- any consequences I'm not foreseeing?

wickerman

Just about all fields in my databases have the auto-enter calculation Trim4( TextFormatRemove( fieldname ) ) to clean up data entry. This is on all fields like names, addresses etc, but NOT fields that may need to have formatted text entered (which are very few, like letter text fields).

Particularly with names and addresses, it solves a lot of formatting problems like surnames not appearing because there is a return after the first name.

Fields that have pop-up menus or radio buttons have a calculation that removes all except the rightmost (last) value. Fields that cannot be empty enter a default value.

  • 2 months later...
  • Author

Just about all fields in my databases have the auto-enter calculation Trim4( TextFormatRemove( fieldname ) ) to clean up data entry . . . .

Is the '4' in that cal a typo -- if not, what does it do? My understanding is that Trim(Text) removes leading and trailing space characters . . . is the '4' part something special?

Albert

Trim4 is the name of a Custom Function Here

Sorry Albert, my bad. What Lee said. :P

I use Trim4() so often now that I've built it into my development template. I forget it's a custom function.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.