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.

Validating text entered is all lowercase

Featured Replies

I need to ensure that all text entered in field Userid is all lowercase.

myuserid = good

myUserid = bad

myuserID = bad

myuSeRiD = really bad

... you get the idea.

I've tried validating by calculation Lower(Userid) but that doesn't seem to do anything. I've also tried If ((Lower(Userid), 1, 0) but that got me into real trouble after I made it strict and didn't seem to work anyway.

I've also tried searching the forums but I must not be looking for the right thing because I'm coming up with nothing.

Can anyone help?

Robert:

If there is a point where you can have a script kick in (after a form with the Userid is filled in, for example) then you could stick this script step in there:

Set Field ("UserId", "Lower(UserId)")

This would strip out the uppercase characters from the entry.

-Stanley

  • Author

So how do I run a script after the operator has tabbed out of the Userid field?

You can't launch a script on someone hitting Tab, but if you've got a "Finish" button on there or something, you could put the script step in there. Or, you could run the script on all the records, when the user closes the database... lots of places to put it in there, depending on your design.

-Stanley

IF you just want to validate try:

Exact(MyField,Lower(MyField)

Charles

  • Author

Cheers, Charles. That's "exact"ly what I was looking for! *Groan* wink.gif

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.